Mysql Error 10060
Contents |
Community Podcasts MySQL.com Downloads Documentation Section Menu: MySQL Forums :: MySQL Administrator :: ERROR 2003: Can't connect to MySQL server (10060) New Topic Advanced Search Solution to Connecting remotely when you get Error 10060 Posted cannot connect to mysql server 10061 by: Mohamed Infiyaz Zaffer Khalid () Date: December 25, 2008 09:50PM Hello everyone,
2003 - Can't Connect To Mysql Server On (10060)
this problem is pretty simple to solve. If you're getting error 10060, this means that you ARE NOT ALLOWED to access
Aws Mysql 10060
the web server remotely. Usually we (I mean, I) access the mysql databases using php and this is on the SAME server. Thus we use 'localhost' to connect. But if you were to
Cannot Connect To Mysql Server On Localhost 10061 Windows 7
for example access the same web database using a local machine running VB, the story is different. First, here's what you should NOT do. I'm saying this because I noticed some responses had these as action steps. So, 1. DON'T change any ports 2. DON'T close existing ports and reopen new ones as it may affect other apps. 3. DON'T disable any firewalls. Now here's what you MUST mysql workbench connection error 10061 do: 1. on your connection string, make sure that you're using the SERVER'S correct IP. On the other hand, you can use the domain name, and this is what I do. 2. The rest of the parameters are the same. I mean they're what you want or have set. 3. NOW the critical thing. First you've got to tell your web server that you need to accept remote connections. You can easily do this using the cpanel. When you're asked for the remote host name, type in % (the percentage sign) to mean ANY HOST. 4. Finally, you may have to tell the web server's firewall that you're making a remote connection from your machine. To do this, cpanel allows you to add your own IP into a 'white list'. In most cases, cpanel shows you a list of class C IPs and your one should be there. Select it. Save the settings. Now go into your app and run the program - eg: in VB. Should work just fine! Happy coding. Khalid ================================== The Smart Solutions Expert PHP MySQL Javascript VB6 C/C++ http://www.marhaonline.com Edited 1 time(s). Last edit at 12/25/2008 09:53PM by Mohamed Infiyaz Zaffer Khalid. Navigate:Previous Message•Next Message Options:Reply•Quote Subje
MySQL forum. http://forums.mysql.com/read.php?34,49742,239961#msg-239961 I found the problem: i had not added the MySQL Server port in firewall's exception list. //<-------part 2 Actually there is no MySQL error with no. 10060. The actual error no. is at the begninning of the error mysql cpanel message.(may be ERROR 2003 etc.) Typically this kind of error message you see due to authentication error 2003 can't connect to mysql server on 'localhost' (10061) issues. There could be many reason: 1. The MySQL server isn't running. 2. Port at which MySQL server is listening is blocked for connection failed can t connect to mysql server on 110 you. 3. Port at which MySQL server is listening cann't accept any connection from outside world due to Firewall. Actually if it is a problem due to Firewall, no need to turn off firewall, you just have to include MySQL http://forums.mysql.com/read.php?34,49742,239961 listeining port in to unblock/exception list of firewall. If your MySQL server is running on windows xp, following is the way to deal with firewall problem: 1. Go to Control Panel -> Windows Firewall (Windows Firewall dialog gets open.) 2. Go to Exceptions Tab and click on ‘Add Port…'(Add a Port dialog gets open.) 3. Give the appropriate name.(e.g., MySQL) 4. Give the listening port of MySQL.(Most commonly 3306) 5. Also make sure TCP radio button is selected. Here https://indiandeve.wordpress.com/2009/08/04/mysqlcant-connect-to-mysql-server-10060-from-remote-client/ is the complete tutorial on how to add a port to Firewall exception list on windows xp. If sill problem persist refer MySQL documentation, on mysql website for problem regarding MySQL server connection problem. //-------> modification history: 1. Nov 18, 2009: Due to lot of visit to this post, i added more detail as part 2. please let me know if this post is useful. Like this:Like Loading... Related Published in: MySQL on August 4, 2009 at 1:56 pm Comments (14) Tags: 10060, 10060 on windows xp, Can't connect to MySQL server, from remote client, MySQL, MySQL problem The URI to TrackBack this entry is: https://indiandeve.wordpress.com/2009/08/04/mysqlcant-connect-to-mysql-server-10060-from-remote-client/trackback/ RSS feed for comments on this post. 14 CommentsLeave a comment On August 25, 2009 at 7:22 pm Hariharan T G said: You'll need to ask whoever's hosting the server as they are denying the connection Reply On August 26, 2009 at 10:23 am falaque said: Thanks Hariharan, i found the solution🙂 Reply On January 25, 2010 at 3:09 pm Sahid said: Yes this post works, thanks alot😀 Reply On February 5, 2010 at 2:00 am Vikram Thakur said: Thanx, Your reply was helpful. MySQL was not accepting the connection from the remote machine due to firewall. I added the port in firewall, Its working fine now. Thanks again. Reply On July 28, 2010 at 2:23 pm jgentlex said: Tnx a lot..this post helped me.. Reply On Septe
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us http://stackoverflow.com/questions/12349948/cannot-connect-to-remote-mysql-with-vb6-10060 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot connect to remote MySQL with VB6 (10060) up vote 1 down vote favorite 1 I got a hosting plan from GKG.net and I have a VB6 connection string to remotely reach MySQL database in it. I followed all instructions and tutorials about how connect to to reach MySQL server remotely. Everything was fine till i get an error that says: [MySQL][ODBC 3.51 Driver] Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10060) I searched for a solution over the net for hours but still there is nothing makes sense about it.. I double checked my connections.. I can ping to my static ip, but cant reach the MySQL server in it. From CPanel i can reach my db with phpMyAdmin. I tested my db and there was nothing wrong with it. connect to mysql Everything seems right. Except i still get the error message with VB6 My connection string: Dim conn As ADODB.Connection Dim constr As String Private Sub OpenServer() Set conn = New ADODB.Connection constr = "Driver={MySQL ODBC 3.51 Driver};" & _ "PORT=" & db_port & ";" & _ "SERVER=" & db_server & ";" & _ "DATABASE=" & db_name & ";" & _ "UID=" & db_user & ";" & _ "PWD=" & db_pass & ";" & _ "OPTION=3;" & _ "STMT=;" conn.Open constr End Sub So how can i resolve this damned connection issue? and What are the odds that causes this? mysql vb6 remote-access share|improve this question asked Sep 10 '12 at 10:37 Berker Yüceer 2,084123978 It quite clearly says that it can't connect. Either the details are wrong or the server is not accessible from the internet. There is nothign your client code can do about it. –Deanna Sep 10 '12 at 11:44 @Deanna lol i didnt ask as whats wrong with my code. I just showed it for people who asks "Whats your connection string? You sure it works?" Anyway thanks for mentioning that my code cant do a thing and seems like i should have a fight with my provider to double check my server's remote access. Thanks. –Berker Yüceer Sep 10 '12 at 12:44 add a comment| 5 Answers 5 active oldest votes up vote 4 down vote accepted Hosts where you access their database server very rarely allow remote access to the database from outside