|
ODBC With MySQL
NOTE:
You must have a mySQL database table or tables set up in order
to access the database.
Requirements:
Windows 95 or NT 4.0
- Download
the ODBC Download myodbc 2.50.xx for Windows95 or NT from
here.
- Unzip
the file into a temp directory and run program "setup.exe"
- From
the "Install Drivers" window, choose MySQL.
- After
installing the MySQL ODBC driver, the install program will
show the "Data Sources" window. Click "Add."
Note:
On Windows NT 4.0, you'll get a message saying "This
application uses the old version of CTL3D32.DLL..." Just
ignore
it for the moment.
- From
the "Add Data Source" Window choose MySQL from
the list box and click the OK button.
- Fill
out the fields in the DSN setup window.
- You
can use any unique identifier for the Windows DNS name
and description
- Enter
the name of the "mySQL Database"
- Enter
the server name
- Enter
the "user"
- Enter
your password for "password"
- Enter
the port number
- Click
on OK.
This
will setup a MySQL DSN on your local PC.
You
may start using the MySQL Data Source in your PC programs.
How
to set up MS Access 97 to access your mySQL database via ODBC
- Open
MS Access and create a new database.
- From
the file menu, choose File and then Get External Data and
then Link Tables.
- From
"Link" window that comes up, choose ODBC Databases.
- From
the "Select Data Source" Window, choose the DSN
name you've setup for your online mySQL database. If you
haven't already done so, see instructions here. Click the
OK button.
- From
the "Link Tables" window, select the table you
want to attach and click the OK button.
- ODBC
could prompt you for the primary key column in that table,
if it can't find it. Specify one and that's it! The online
mySQL table is now attached to your local access database:
- You
may open the table, update, inset or delete records. To
attach all database tables, follow the above steps for each
table in your database.
|
|