Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cannot connect to mysql database

Posted on 2010-11-15
5
Medium Priority
?
784 Views
Last Modified: 2012-05-10
Hi
Has anyone got any ideas why I cannot connect to my sql database?
This is the error message I receive:

SETTINGS
--------
Moving data directly to MySQL server

TABLES
------------
Error connecting to destination database.
Connection: Provider=MSDASQL.1;Driver={MySQL ODBC 5.1 Driver};Extended Properties="SERVER=localhost;UID=webtestc_russell;PWD=********;PORT=3306;OPTION=0;STMT=;"
Program Version: 3.0.0.138
ODBC Version: 5.1.8.0
Function: modMySql.MoveData2MySql
Error: -2147467259
Reason: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on 'localhost' (10061)
thanks in advance for any suggestions
bud
0
Comment
Question by:bud144
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
NDarkstar earned 2000 total points
ID: 34139945
The error message being supplied is indicating the inability to connect opposed to a denial due to incorrect login credentials.

You might try temporarily disabling your firewall or ensuring that the mysql daemon is actually running.
0
 

Author Comment

by:bud144
ID: 34140152
Thanks for your reply
I turned off the router & connection firewalls but still same error?
any other ideas appreciated
0
 
LVL 3

Assisted Solution

by:NDarkstar
NDarkstar earned 2000 total points
ID: 34140306
Let's see...  Did you disable the Windows firewall?  I assume Windows since I see the MSDASQL provider being used.  If you disable it entirely, you can determine if it's the cause of the connection issue.

To get to the firewall settings, you'll need to go to the control panels, then locate and open 'Windows Firewall' (assuming Vista / Server 2003+).  From there, you can choose to turn the firewall on or off.  If this allows the connection to occur, you'll need to create a permanent rule to let traffic through.

To alter the rules to allow MySQL through the firewall, you should be able to choose to allow a program through the firewall from the control panel.  Selecting to 'allow a program' then locating the MySQL server in the program list and adding a checkmark to the networks to allow the connection should create the rule.  If the MySQL server isn't listed, you may need to add it through the 'allow another program' button.
0
 

Author Comment

by:bud144
ID: 34140360
yes i did turn off the windows firewall completely
0
 
LVL 3

Assisted Solution

by:NDarkstar
NDarkstar earned 2000 total points
ID: 34140548
Hm...  Well, if it's not the firewall and if running the Services snap-in (Win+R: services.msc) shows the MySQL Server Status as Started, I'm not too sure what the issue is.

Unlikely, but has your hosts file (%SystemRoot%\system32\drivers\etc\) been modified to redirect localhost at an IP other than 127.0.0.1?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question