LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2003, 05:59 AM   #1
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Rep: Reputation: 0
Unhappy MySQL problem


Hi,
i am a newbie in linux.
do anyone know how to set MySQL or server comp so I can connect into the database in my server from another comp by using ADO ?
Hope you understand what i mean :|
thx
 
Old 01-15-2003, 06:48 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Don't know what ADO is. I use MySQL with PHP. If you just need to insert and view data then this is a good way to go.
 
Old 01-15-2003, 11:54 AM   #3
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
ADO is Microsofts Db connectioni libraries, right? Well then, what language are you using VB, C#, C/C++, etc...

-Leif
 
Old 01-15-2003, 11:57 AM   #4
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
sorry,
i store my database in MySQL using in my redhat 8 computer, and i want to access it through another computer which using winxp. I tried to read my database using ms access, and i already install MyODBC 2.50 in winxp computer, but i still cannot connect to my database in MySQL, it said :

ODBC --call failed.
[TCX][MyODBC]Lost connection to MySQL server during query (#2013)

i also confused what do i need to fill in for windows DSN name.
 
Old 01-15-2003, 11:59 AM   #5
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
addition:
is there anything that i need to setup in my redhat computer as well?
 
Old 01-15-2003, 12:33 PM   #6
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
Download the windows mysqlgui from mysql.com

You'll be up and running in minutes.
 
Old 01-15-2003, 01:16 PM   #7
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
For the DSN you should probably consult the MySQL docs. I am sure that the proper parameters are there. It appears you are not using ADO at all, more likely MDAC which is the microsoft data access libraries for clients, these are installed by default plus there are updates available from MS. ADO is a programming library for activeX data objects.

Try
http://www.mysql.com/documentation/mysql/bychapter/

using chapter 8.3

You should not have to do anything to the db server assuming it was set up properly and is up and running, and there is no networking problems hardwar and software oriented between your computers...

-Leif
 
Old 01-16-2003, 01:19 AM   #8
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
leifton:
i think i miss something in setting up for my redhat computer. If it possible, can you tell me what do i need to setup in my redhat?
i can ping from my xp computer to my redhat computer, and connect via ssh (telnet and ftp cannot). and I already start mysqld service, and also do this:
mysql>grant all privileges on *.* to user@'%';
 
Old 01-16-2003, 06:39 AM   #9
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
post the contents of your ODBC.INI on your XP box. Make sure the ip address or DNS (NOT DSN) match your linux box, make sure the user exists in MySQL and also post the actual commands and output from your atttempt(s) to connect.
 
Old 01-16-2003, 11:32 AM   #10
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
here is the content of odbc.ini in my xp box:
[ODBC 32 bit Data Sources]
ECDCMusic=Microsoft Access Driver (*.mdb) (32 bit)
MS Access Database=Microsoft Access Driver (*.mdb) (32 bit)
Excel Files=Microsoft Excel Driver (*.xls) (32 bit)
dBASE Files=Microsoft dBase Driver (*.dbf) (32 bit)
Visual FoxPro Tables=Microsoft Visual FoxPro Driver (32 bit)
Visual FoxPro Database=Microsoft Visual FoxPro Driver (32 bit)
sample-MySQL=MySQL (32 bit)
test=MySQL (32 bit)
[ECDCMusic]
Driver32=C:\WINDOWS\System32\odbcjt32.dll
[MS Access Database]
Driver32=C:\WINDOWS\System32\odbcjt32.dll
[Excel Files]
Driver32=C:\WINDOWS\System32\odbcjt32.dll
[dBASE Files]
Driver32=C:\WINDOWS\System32\odbcjt32.dll
[Visual FoxPro Tables]
Driver32=C:\WINDOWS\System32\vfpodbc.dll
[Visual FoxPro Database]
Driver32=C:\WINDOWS\System32\vfpodbc.dll
[sample-MySQL]
Driver32=C:\WINDOWS\System32\myodbc.dll
[test]
Driver32=C:\WINDOWS\System32\myodbc.dll

the ip address for my xp box is 192.168.0.34/255.255.255.224
the gateway and DNS server address is : 192.168.0.33
the ip address for my redhatbox is 192.168.0.33/255.255.255.224
with no gateway and no DNS server address.

mysql>grant all privileges on *.* to user@'%';

mysql> select * from mysql.user where User = 'user';
| Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv |
----------------------------------------------------------------------------------
| % | user | | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | Y | Y |

from ODBC User Data Source:
windows DSN name : test
MySQL host (name or ip) : 192.168.0.33
MySQL database name : user
the rest is empty.
 
Old 01-16-2003, 12:15 PM   #11
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
Try deleting your 'sample-MySQL' and 'test' entries. Next, create a new 'system' dsn and make sure to fill in server, user, passwd and port fields.

Try that out before pursuing another approach.

(If you do not feel I am understanding your problem, or if you have found any other pertinent information, let me know)

Right now, I just think that your dsn is not set up correctly. The MyODBC docs say to leave some information out. I am not sure that is the best thing for now. Try to leave all information in the dsn profile.
 
Old 01-16-2003, 12:16 PM   #12
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
By 'system' I did not mean that to be the name of the profile, but the type of dsn, sorry for the confusion...
 
Old 01-17-2003, 05:30 AM   #13
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
leifton,
I remove all data source which are sample-MySQL and test.
After that I create data source in System DSN and the entries:
windows DSN name : test
MySQL host (name or ip) : 192.168.0.33
MySQL database name : test
user: user
Password:
Port : 3306
SQL command on connect:

test database already available from the first time, and my user login "user" is created with no password like i said i create it with grant all privilages with no identified.
but still there is no sign of connection because when i import external data in msaccess, it said Lost connection to MySQL server during query.
i really have no idea what wrong.
i also enable the telnet and ftp in my redhat box, and i can access it from my xp box.
hope you can help me.
 
Old 01-20-2003, 08:57 AM   #14
Cr4y0n
LQ Newbie
 
Registered: Jan 2003
Location: OZ
Distribution: redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Dudes,
now i get the answer of my probz. I think it is better if i post the answer, and if somebody found same problem with mine, you can resolve it.
Red Hat Linux 8.0 provide MySQL in its installation. And the problem is, the MySQL itself is not compatible with glibc that provided in the OS, i dont know latest gilbc can solve it, but by installing the latest MySQL server RPM in www.mysql.com can overcome the problem. If the the software can't installed in Red Hat, then try type this:
Shell>rpm -i MySQL.rpm --force --nodeps
after that, try to stop and start again mysqld by do this :
Shell>/etc/rc.d/init.d/mysqld stop
Shell>/etc/rc.d/init.d/mysqld start

there is another way to solve it (i guess), but i use this way and i can overcome the problem.

Thanks leifton for your help to me ^_^
 
Old 01-20-2003, 09:14 AM   #15
leifton
LQ Newbie
 
Registered: Dec 2002
Location: Cincinnati, Ohio, USA
Distribution: RedHat 7.3, FreeBSD 4.4
Posts: 15

Rep: Reputation: 0
Wow, glad to hear you solved your problem. Good thing we did not pursue that avenue any further...

Leifton
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
mysql 4.0.24 to mysql 4.1.12 upgrade problem tuxrules Slackware 7 08-13-2005 06:43 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration