The ODBC API (Open Database Connectivity Application Programming Interface) provides a way for client programs such as MS Access to access databases on remote servers. Before you can use Access with your MySQL server, you must thus first install the MyODBC driver. To do so, follow these instructions:
· In the Windows DSN Name field, type sample-MySQL.
· In the MySQL host (name or IP) field, type the IP address of the host where the database resides.
· Leave the MySQL database name field blank.
· In the User field, type the name of the user you configured using MySQL Admin.
· In the Password field, type the root password you chose for that user.
· In the Port field, Leave this blank unless you have a custom my.cnf file.
· Leave the SQL command on connect field blank.
· Press OK.
· Click close, and then OK.
· Close the MyODBC zip file.
Congratulations! You have successfully configured MyODBC to connect to your MySQL server, and you can now link to your MySQL tables with Microsoft Access.
Connecting to a MySQL Database from MS Access; Linking and Editing Tables
Microsoft Access provides two ways to edit the data in your MySQL databases: importing and exporting data, and linking directly to tables. When you import data, you make a copy of a table or query on your local computer; similarly, when you export, you copy information from your local computer back onto your MySQL server. The limitation of this is that you cannot directly edit or overwrite tables in your existing MySQL database. Linking, on the other hand, allows you to make a direct connection to a database on your MySQL server and edit table entries with MS Access. This section shows you how to do just that.
Once you have the MyODBC driver installed, you can connect to your MySQL server and edit database records via a MS Access link. To connect to your MySQL server from MS Access, follow these instructions:
Note: while you can view table and column properties of linked tables in MS Acess, you cannot configure fields, tables, or database schema. phpMyAdmin, however, handles such changes very ably.