Solved

Cannot connect to mysql database

Posted on 2010-11-15
5
777 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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