Solved

Cannot connect to mysql database

Posted on 2010-11-15
5
771 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 500 total points
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
yes i did turn off the windows firewall completely
0
 
LVL 3

Assisted Solution

by:NDarkstar
NDarkstar earned 500 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now