Solved

Cannot connect to mysql database

Posted on 2010-11-15
5
780 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
NDarkstar earned 500 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 500 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 500 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

635 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