If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Trying to access a MySQL database on a linux Server from MS Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-15-03, 00:28
Mandragonus Mandragonus is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 4
Trying to access a MySQL database on a linux Server from MS Access

How can I access to a MySQL database running on a linux server? I will have to establish an internet connection. Is there any experience amongst this forum with sending SQL Queries out on Visual Basic? I read something with an ODBC driver for acces from MySQL, but some say this will not work from Windows to Linux....

Please give me a hint. I go crazy about this, its so complicated...
Reply With Quote
  #2 (permalink)  
Old 10-22-03, 07:18
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: Trying to access a MySQL database on a linux Server from MS Access

Quote:
Originally posted by Mandragonus
How can I access to a MySQL database running on a linux server? I will have to establish an internet connection. Is there any experience amongst this forum with sending SQL Queries out on Visual Basic? I read something with an ODBC driver for acces from MySQL, but some say this will not work from Windows to Linux....

Please give me a hint. I go crazy about this, its so complicated...
ODBC works fine.

Get the latest version of ODBC driver from www.mysql.com
Install it, and go to ODBC configuration located in Control Panel and create new DSN enter the host ip, username, password

This is the example of ADO connection from www.mysql.com which is working for me:

Dim myconn As New ADODB.Connection
Dim myrs As New Recordset
Dim mySQL As String
Dim myrows As Long

myconn.Open "DSN=MyODBCsample"
mySQL = "SELECT * from user"
myrs.Source = mySQL
Set myrs.ActiveConnection = myconn
myrs.CursorLocation = adUseClient
myrs.Open
myrows = myrs.RecordCount

myrs.Close
myconn.Close
Reply With Quote
  #3 (permalink)  
Old 10-22-03, 19:25
Mandragonus Mandragonus is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 4
ika, you are magnificent, I try this tomorrow. If I get it running I give you a big thank you (if you give me your em ail to my add ress mandragonus at h o t mail dot com)
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

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