Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cannot connect to mysql database

Posted on 2010-11-15
5
Medium Priority
?
781 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 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
In this article, we’ll look at how to deploy ProxySQL.
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 Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

722 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