Syskay Systems Forum

Syskay Systems Sales and Support => Sales and Support Questions => Topic started by: yomi on January 14, 2008, 12:47:02 AM



Title: Could not connect remotely to MySQL database on my website
Post by: yomi on January 14, 2008, 12:47:02 AM
It tried to connect remotely to the database I created on my website using MySQL ODBC 3.51 Driver, but access was denied to my username. What do you think is wrong and how do I connect. I accessed the connector through control panel > performance and maintenance > Administrative Tools > data sources(ODBC) > MySQL ODBC 3.51 > then I filled in the parameters.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 14, 2008, 02:31:52 PM
Please make sure your parameters are accurate. It should be of this format:

MySQL Server: your-domain.com
Username: cpanelName_mysqlUserName
Password: your-mysql-db-password
Database: cpanelName_mysqlDatabaseName

("cpanelName" is the username you use to log into CPanel.)



Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 14, 2008, 09:40:33 PM
Yes I used the parameters as described e.g I used for example lets say I created a user xxx with password yyy and a database name zzz on my domain with my cpanelName tttco and domain www.ttt.com, the parameter i used was

MySQL Server: www.ttt.com
Username: tttco_xxx
Password: yyy
Database: tttco_zzz

on trying to connect an error like this occurred
[MySQL][ODBC 3.51 Driver]Access denied for user 'tttco_xxx'@'41.219.236.120' (using password: YES)
Could the problem be due to privileges of user to the database? and if it is, how can one address this.
Another question I have is how do one check privileges of users on the mysql database.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 15, 2008, 01:08:47 AM
Click on MySQL Databases, under "Current Databases" you will find a table that contains all users. Click on the user to set privileges.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 15, 2008, 11:41:09 PM
I did that and gave the user all privileges, but it still did not connect


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 16, 2008, 09:56:42 PM
Which site is the remote server located?


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 16, 2008, 10:49:59 PM
www.digxi.com


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 17, 2008, 12:35:17 PM
Hello,

Kindly give me the location of the scripts that you want to access the database, so i can have a look at it when i am less busy.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 17, 2008, 09:49:07 PM
It is not a script but a way to connect to a databases using the systems administrative tool. To connect to mysql server you will need to have mysql-odbc-connector installed.

To use this tool you'll, begin from the systems control panel
click Performance and Maintenance
click Administrative Tools
click Data Sources (odbc) shortcut
From the form displayed click add button if mysql connector is not displayed
Double click on the mysql connector in the list
Set the connection parameters to connect to the server then click test button to test the connection
click diagnostics button to view error mesage.

I would be very greatful if you can help resolve this.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 19, 2008, 07:58:31 PM
After examining your situation, I discovered that you did not supply any hostname for the connecting database under "Remote Database Access Hosts". I have imputed the appropriate values. Please try again now and let me know the response.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 19, 2008, 09:24:27 PM
Thanks very much it connected.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 21, 2008, 08:48:08 PM
Thanks once again, where and how do I supply hostname for the connecting database under "Remote Database Access Hosts, should incase I need to connect on another domain, as I have another domain with you and would register another next week.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 23, 2008, 01:19:20 PM
You can simply repeat the hostname values that i imputed. That should work fine as long as your internet connection remains starcomms.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 27, 2008, 02:55:16 PM
Pls, where did you input the hostname and what hostname did you input.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 27, 2008, 08:36:48 PM
The hostname is simply the IP address of the computer you are connecting with.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 28, 2008, 09:47:23 AM
What I mean is where would I input the IP address? I tried to see it there is any place to input hostname in the system administrative tool that I used to connect, but there was no place for hostname. So am asking how do I get to the place you said I should input the hostname?


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 28, 2008, 01:43:46 PM
Under "Database", Click on "Remote MySQL".


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 29, 2008, 05:58:00 PM
Thanks I saw the settings now. I'll try it on the other sites I manage. And does that means that I can only connect remotely on this my computer.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: admin on January 29, 2008, 08:20:08 PM
If you are connecting from another computer, you can enter the appropriate hostname/IP for that host.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on January 30, 2008, 08:57:17 PM
Thanks a lot.


Title: Re: Could not connect remotely to MySQL database on my website
Post by: yomi on July 16, 2008, 11:22:40 PM
I had earlier connected remotely with your help on a different computer, but i tried the same on another but didn't connect. I was getting this error [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'www.digxi.com' (10060). Please what should I do.