473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What's the best (better) way to connect to a MySQL database via ODBC in Access?

1
Hi all,

Although I've got quite a lot of experience with php and (M/My)SQL, I
only used both within an online php script. These last few months I
bought an option with my webhost to access the remote database via ODBC
via my homePC. I use MS Access (linked tables) on my PC, just because
it's very easy to make new reports / forms / querys / ... And, in
principle, it should work, shouldn't it? And it does... most of the
time, however there very, very often errors. Most of the time I can
solve these just by closing and re-openinging Access, but there have to
be better solutions for this.


Following error messages are extremely frequent:


- Most of the time, Access is complaining 'ODBC Connection Fault
(Connection Lost)'. Ok, so maybe, there's a little network problem
(stop complaining and try again ;) ). The annoying thing is that Access
also asks to re-enter the password, although I did mark (when the
initial connection was made) to remember the password. Funny thing, if
I just enter the password myself in the little popup window, everything
works perfectly, but why can't Access do that for itself?


- In some cases this method doesn't work and I just have to close and
re-open Access to get it working again. But why? What does opening and
closing Access change ? Is it resetting the connection? But why can't
Access do that without having to close itself?


- Also very often and very annyoing : I justed added a record in
Access and just after that I try to change the newly added record. But
Access refuses because 'data has been change by another user'. What
other user? I'm the only one using this DB. If I wait 5 minutes, I can
change whatever i want.


I guess these problems are pretty common for everyone working with ODBC
/ MySQL (I guess). But, there has to be stable, better solutions?
Should I not use Access (if not: what should I use), or can you connect
to a MySQL database in another (better) way.


I'm really hoping for answers, it's driving me nuts! :)


Thanks!
Sep 30 '06 #1
1 2146
PEB
1,418 Expert 1GB
Hi man,

I've the same pb with MySQL! I've nto worked enought but some of these things can be set using the ODBC connection settings and other properties in Access about ODBC connections

See

in Access VB

ODBCConnectStr
ODBCTimeout
ConnectionTimeout Property

For the moment it's all! I'll work also on this field!

Nice chance!

:)
Sep 30 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Mr Dygi | last post by:
Hi, PHP 4.3.4 installed manually from package *.zip and Apache 2. I have a problem with this simple code: <?php $link = mysql_connect("127.0.0.1","","") or die("Could not connect: " ....
11
by: Mike MacSween | last post by:
My client has an MS Access database application on her local machine. I have full access to that in terms of changing the design. I've got a simple PHP/MySql application on shared hosting, so no...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
16
by: MLH | last post by:
Using MS Access, I have attached to MySQL servers in other states and other countries on the other side of my router. But when I use the MySQL ODBC driver 3.51 to connect to a MySQL server on my...
4
by: Ben | last post by:
Hi, I started with php and mysql and i discovered three methods for connecting to a database: $conn="DRIVER={MySQL ODBC 3.51 DRIVER};SERVER=10.0.0.181;DATABASE=reserv";...
1
by: Alex Hardin | last post by:
Hey, I'm trying to use the connect to database wizard to connect to a MySQL database on my web server, 66.235.193.45 (I'm actually not sure if that points specifically to my part of the server, if...
2
by: zMisc | last post by:
I am using VB.NET 1.1 and cannot connect to a MySQL (v5) database. I've done the following: 1) Create a DSN for MyODBC. 2) Connect using: Driver=MySQL ODBC 3.51 Driver; Server=localhost; Data...
5
by: news.telia.net | last post by:
Hi! I have a question. I have installed php and mysql on an apache-server on windows and I can't connect to the server. I tried to create a database (since I am trying to learn howto). My...
2
by: 111mike | last post by:
Hello, Here's my problem. I cannot connect to mysql database using odbc string connections or dns. I keep getting a "cannot connect to mysql server localhost." I'm running windows XP Pro and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.