Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > MySQL > Linux MySQL and Win32 ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-04, 05:25
arkade arkade is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Linux MySQL and Win32 ODBC

Hi,
Sorry if this question has been answered serveral times but I've searched for the last day trying to find an answer.

I'm running mysql on a linux machine and want to access it from a Windows XP maching via ODBC. I've installed the windows mysql odbc drivers but when i attempt to configure them via Data Sources (ODBC) and press the Test Data Source i get "Can't connect to MySQL server on ..." I've tried using both the IP and the hostname in the configuration. Is there something i need to do to the mysql server to make it aware of the ODBC drivers?

I can access mysql via apache and phpmyadmin which are running on the same machine as mysql but accessed from the windows machine. I've tried telnetting to port 3306 but it doesnt seem to be open. /etc/mysql/my.cfg lists 3306 as the port.

Any Suggestions?
Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-03-04, 09:40
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 9,572
I'd start with basic TCP/IP connectivity testing. My guess would be that there is either a firewall or something like it that is causing your problems.

Start by using ping to see if the Windoze box can see the MySQL server. If that works, try tracert to see what path the packets travel. Once you get to that point, then telnet might make some sense, but telnetting how and to what is unclear to me at this point!

-PatP
Reply With Quote
  #3 (permalink)  
Old 06-04-04, 01:36
arkade arkade is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
The windows box can definately see the linux box. I dont have a screen on the linux box and use putty to do everything. Tracert isnt going to help - the boxes are next to each other both physically and networcally. I ran nmap and port 3306 isnt listed as open. Could mysql be running but not opening a port? mysql is definately running though -
mysqladmin -p ping
Enter password:
mysqld is alive


I can't think of what I'm doing wrong.
Reply With Quote
  #4 (permalink)  
Old 06-04-04, 11:32
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,566
>I can't think of what I'm doing wrong.
You very well may not be "doing wrong" (an error of commission).
I suspect that you are not doing something that needs to be done. (error of ommission).
Have you granted remote access into the MySQL DB from the Windoze box?
AFAIK, default privs/security is not enabled to allow access to the DB from any remote system.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
  #5 (permalink)  
Old 06-06-04, 01:37
arkade arkade is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
It was indeed an error of omission. You were right - by default network access to the db is disabled.

Thanks for your help.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On