Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-03-06
12
Medium Priority
?
962 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 84

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 84

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 84

Expert Comment

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

Author Comment

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

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

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 84

Expert Comment

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

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

886 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