crippen Posted December 31, 2005 Posted December 31, 2005 Hi, I'm trying to connect to a mysql database I've created using Cpanel in my TCH account, with a GUI tool called mySQL maestro. The fields I am having trouble figuring out what to enter are: Host name: Port number: User name: Password: From there you select the database and tables. From searching the forums, I gather that the host name should be ftp.mydomain - is that correct? The username would be myusername_dbusername and the password I gave it. This does not seem to be working however. Any suggestions? Thanks! Quote
TCH-Bruce Posted December 31, 2005 Posted December 31, 2005 Host name: your-domain.ext Port: 3306 User: cpanelname_database-user Password: password Quote
crippen Posted December 31, 2005 Author Posted December 31, 2005 Thanks. How do I assign a password to the db? Quote
TCH-Bruce Posted December 31, 2005 Posted December 31, 2005 Sorry, that is the password for the db_user assigned to the db. And the other field is the cpanelname_dbuser Quote
crippen Posted December 31, 2005 Author Posted December 31, 2005 Thanks again Bruce. This is not working, and I am positive my port is open (I can connect using mysql maestro on port 3306 to other servers just fine). Also testing every password I ever use with this account ... Is it possible that remote connections are not set up correctly for my database? I read that this may be a problem with some accounts and a help ticket should be opened. Quote
TCH-Bruce Posted January 1, 2006 Posted January 1, 2006 Have you added your IP to the Access Hosts list in mySQL? Quote
crippen Posted January 1, 2006 Author Posted January 1, 2006 Have you added your IP to the Access Hosts list in mySQL? Yes I've done that. Quote
TCH-Bruce Posted January 1, 2006 Posted January 1, 2006 Sorry, I am out of ideas. Maybe someone else that has used this program can shed some light on it for you. Quote
TCH-Don Posted January 1, 2006 Posted January 1, 2006 Just to make sure a step is not missing, here is my checklist for using a database -- databse connect ---- Be sure that in MySql you 1 - created the database 2 - created a user 3 -added the user to the database (go back to MySql and find the Add user select the user and database, and then Add user to database) Then to connect to the database in a script use: host: localhost database: yourCpanelName_databaseName user: yourCpanelName_databaseUser password: mypassword * Note password is just as the password, do not add the CpanelName to it. --------------------------- 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.