Solved

Help with ODBC connection from Windows 7 workstation to Linux MySQL database.

Posted on 2014-03-06
12
899 Views
Last Modified: 2014-03-11
I am a MSSQL programmer, but am new to the Linux/MySQL world.  I am using a Windows 7 workstation, trying to create an ODBC connection to our Linux MySQL Database.  

I am referencing port 3306, logging in as root with the password, and specifying the name of the database.  

The ODBC test connection error message says:

Connection Failed: [HY000] [MySQL] [ODBC 5.1 Driver] Can't connect to MySQL server on '100.100.100.82' (10061)

Any help would be appreciated.
0
Comment
Question by:VMKuser
  • 6
  • 6
12 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39910172
A normal installation of MySQL does not allow external access with 'root' and strongly recommends against changing that.  You would normally create a more limited user with privileges from 'anyhost' or a specific host IP and use that to connect from another machine.  http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
0
 

Author Comment

by:VMKuser
ID: 39918556
Sorry, didn't see this comment.  

Still not working.  I used the GRANT command to grant privileges to "linda".  I've tried connecting using the "linda" login and password, but still no luck.

The error message I'm receiving is the same.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39918585
Does your 'linda' login include external access thru 'anyhost' (%)?  MySQL user format includes username, password, and connection.  A 'localhost' connection is Not the same user as an 'anyhost' (%) connection.
0
 

Author Comment

by:VMKuser
ID: 39918605
Yes, I set one up for %.
0
 

Author Comment

by:VMKuser
ID: 39918612
Here's what I see in phpmyadmin.
EE01.JPG
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39918643
Can you login thru phpMyAdmin with the 'linda' user?
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

by:VMKuser
ID: 39918646
Yes, I can login thru phpMyAdmin with the 'linda' user.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39918653
Then it seems likely that the Linux firewall (iptables) is blocking access from external sources.
0
 

Author Comment

by:VMKuser
ID: 39918679
I'll check into that.  Since we want this only accessible to our staff in the network, would I allow the internal IP address or the external IP address?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39918775
If all your staff are on the internal network, that would be all you would want.
0
 

Author Comment

by:VMKuser
ID: 39920887
That was it, David.  Thanks for your help.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39921265
You're welcome, thanks for the points.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS CLI - Issue with name display 2 51
nagios 1 22
How to Generate log or file on inserting duplicate records in mysql 6 33
Sql query on a varchar that is numeric. 8 27
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 …
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

895 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

13 Experts available now in Live!

Get 1:1 Help Now