MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 21st, 2003, 08:47 AM
blackmant blackmant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 5 blackmant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
linking to mysql server with Access

Is it possible with VB Access code to link to MySQL server database tables instead of using preset DSNs?

Reply With Quote
  #2  
Old April 21st, 2003, 03:44 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
By VB Access code, I assume you mean VBScript / ADO? You can connect to a MySQL Server with the following connection string:

"DRIVER={MySQL ODBC 3.51 Driver}; SERVER=localhost; DATABASE=; UID=;PWD=; OPTION=35"

of course you would change those parameters to match your database.

Reply With Quote
  #3  
Old April 21st, 2003, 04:41 PM
blackmant blackmant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 5 blackmant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you for reply. My problem is that I can connect as you suggest, but so far I have been unable to write code which replaces the DSN table linking and which will enable me to carry out insert/delete functions.

Reply With Quote
  #4  
Old April 21st, 2003, 06:55 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
DSN's allow you to write to a db? Are you getting an error?
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #5  
Old April 22nd, 2003, 03:28 AM
blackmant blackmant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 5 blackmant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by stumpy
DSN's allow you to write to a db? Are you getting an error?

Thanks for your reply. I am trying to avoid using DSNs. I can connect to the MySQL database using ADO and can read the data. I need to be able to delete/insert and am having trouble.

Reply With Quote
  #6  
Old April 22nd, 2003, 04:13 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Hmm - you might have your file permission set incorrectly - does the mysql users have write permissions
Also, check the DSN setup options - i recall a few years ago there being a setting for "read only", and it was set by default... very weird.

If u don't want to go down the DSN route (which is slow) - your better off using a a "DNS-less" connection, or, even better, OLEDB (the fastest DB connection method)

more info:
http://www.activeserverpages.com/learn/dbopen.asp
http://www.4guysfromrolla.com/webtech/042599-1.shtml

Reply With Quote
  #7  
Old April 22nd, 2003, 08:33 AM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Oh I wasn't aware that you were unable to modify the database. As Stumpy said, you need to check the MySQL permissions for the user that you're attempting to log in under.

Reply With Quote
  #8  
Old April 22nd, 2003, 02:58 PM
blackmant blackmant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 5 blackmant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm beginning to think the problem is that the MySQL ODBC does not put installable ISAMs in the registry. I've had a look and there do not appear to be any. Consequently when I try to link I get a 'no installable ISAMs' message.

Does this make sense? and am I missing something? If the DSN works I would have though that a DNSless connection should be possible on the recordsets as well as the main connection.

Reply With Quote
  #9  
Old April 24th, 2003, 10:56 AM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
When you set up a dsn, does the option appear for MySQL in the first frame where yo uselect the database type? If so, then the system has an ISAM installed. You can try going to mysql.com and downloading MyODBC...

Reply With Quote
  #10  
Old April 24th, 2003, 04:43 PM
blackmant blackmant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 5 blackmant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for help. I have downloaded the latest MySQL ODBC for Windows XP but on inspecting the registry there does not appear to be ISAM support. The Microsoft supported databases show ISAM support. I am new to MySQL and I am puzzled that this particular issue does not seem to be covered in the literature.

As you know unless one can link programatically without using DSNs, it is necessary to set each client up and it is difficult to switch MySQL databses 'on the run'.

i'm short of ideas how to get around the problem.

Reply With Quote
  #11  
Old April 29th, 2003, 08:59 AM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
http://www.mysql.com/products/myodb..._is_MyODBC_3.51

apparently you DO have to use a DSN. sorry about that =-(

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > linking to mysql server with Access


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway