How To Setup an ODBC Connection To a MySQL DatabaseJuly 25th, 2008 · No Comments
But what exactly is ODBC? ODBC is an abbreviation for Open Database Connectivity. It is an interface used to access databases using SQL queries (Structured Query Language).
How To Setup an ODBC Connection To MySQL DatabaseThis tutorial has been performed on a Windows XP SP3 workstation. These steps might differ on a different operating system. First of all you will the MySQL Connector/ODBC. At the time of this writing, the lastest version is 5.1.4. You can get it here. Personnally I’d recommend you to get the MSI version of the connector. Once downloaded, simply launch it, choose the “Typical” setup and go through the installation.
Before we try to create an ODBC connection, we need to make sure that our workstation’s IP address (or hostname) has the right to access the MySQL server remotely. There are several ways to do this but in this case I’ll use cPanel, a great web control panel, from my InMotion Hosting account. Start logging in cPanel and click on the Remote MySQL icon from the Databases panel:
You will then be brought the Remote Database Access Hosts List. Enter your IP address or hostname in the textbox. You can use a wildcard to allow access from an entire domain. Click on Add Host.
Now back to our MS Windows desktop, let’s create our ODBC connection. Click on Start => Settings => Control Panel => Administrative Tools and double-click the Data Sources (ODBC) icon. At this point, you have the choice of creating an ODBC connection that will be available only to the current logged on user (User DNS) or for all the user profiles on this workstation (System DSN). Unless there are some security risks, I always make the ODBC connections available to all. Select the System DSN tab and click on the Add button. You will asked to select which ODBC driver to use. Select MySQL ODBC 5.1 Driver from the list and hit Finish. You will now need to enter the configuration information for this ODBC connection:
If you’ve entered all the information correctly, you will see a list of available databases from the Database dropdown menu. Select the appropriate database from the list and click on OK. I’ve blurred out some fields for security reasons.
From there, you will have an available ODBC connection for any software on your computer (must support ODBC though). You can now use Microsoft Access to manage your database content or Crystal Report to create some reports from your computer for example. Links Related Posts |
Popular PostsLatest PostsLatest Deals & CouponsRecent Comments
Hosting ReviewsRecent WebmastersTag Cloud
1and1
apache
bluehost
centos
cheap web hosting
control panel
coupon
coupon code
cpanel
dedicated servers
dreamhost
godaddy
green web hosting
hostdime
hostgator
hostpapa
iis
inmotion hosting
knownhost
linux
lunarpages
mysql
openx
php
reseller hosting
shared hosting
system administration
vps
web hosting
web hosting comparison
Web Hosting Comparisons
whm
windows
windows 2008
wordpress
|
|||||||||
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment