mredmond Posted December 22, 2006 Posted December 22, 2006 I have recently set up phpNuke on my site using the Fantastico script assistant. It creates a MySQL database and sets up a config.php file which has the database name, userid and password. Using cPanel, I have created another MySQL database and I am trying to set up an ODBC connetion to it. I am using the same userid and password as in the config file, changing only the database name, but using the same cPanel_database convention as with the phpNuke database. But so far, no luck. I get a "cannot connect ..." error. Any suggestions? Quote
nortk Posted December 22, 2006 Posted December 22, 2006 For each database you create, you must also add a user to that database. You could add the same user as the one on your phpnuke db, or you could create a new user and add it to the new database. See if that helps. Quote
TCH-Andy Posted December 22, 2006 Posted December 22, 2006 You will also need to enable remote connections to your databases (you do that in the mySQL section of cpanel). Quote
mredmond Posted December 22, 2006 Author Posted December 22, 2006 You will also need to enable remote connections to your databases (you do that in the mySQL section of cpanel). That was it. You guys are terrific. Thanks. Quote
mredmond Posted December 22, 2006 Author Posted December 22, 2006 That was it. You guys are terrific. Thanks. Let's take this one more step. Now that I can connect, the database field in the Windows ODBC setup application is supposed to populate with the various databases that I have access rights to. But none are showing up. I DO have rights to the tables, bu tnone are showing up. Please advise. Thanks. Quote
TCH-Andy Posted December 23, 2006 Posted December 23, 2006 from memory, you need to tell it the name of the database (it doesn't just scan and tell you a list of all in some software). Once you have told it the name of the database - it should list the tables fine. It's not my area of expertise - someone else might be along who can help. If not, PM me, and if you can set up a user for me - I'll test. Quote
mredmond Posted January 3, 2007 Author Posted January 3, 2007 Well guys and gals, I've been doing some hunting. I managed to find the following link: http://bugs.mysql.com/bug.php?id=7987 In it, John Collins had the answer. He writes that MSAccess looks for user Admin when attempting to connect to an MySQL database using ODBC. I created a user ADMIN and Voila! So regardless of the users you have set up and regardless of the success of the TEST, you won't connect until you set up a user ADMIN and assign it to your databases. I am not a system guru; I don't know the inner workings and I don't really want to - but this worked. Thanks, John Collins! Quote
TCH-Bruce Posted January 3, 2007 Posted January 3, 2007 Leave it to Microsoft to assume (force) Admin for the user name. Since that's the only way it will work doesn't that make it a security risk? Anyone trying to access the db will already know the user name and only have to guess the password. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.