![]() |
|
|
Published: Friday, September 22, 2000 By Kerry Garrison
What is MySQL? If this were all true, then why would anyone want to run SQL Server over MySQL? There are plenty of reasons why corporations want to have a particular piece of software running over another, we won't go into all of that here. Suffice it to say, you will probably find that technically speaking, MySQL will suite a large percentage of database projects out there. I had worked with a similar product, mSQL, several years ago on Unix systems and had always been on the lookout for a low-cost, efficient database engine for Windows systems. Currently both mSQL and MySQL are both available for Windows. In comparing the two systems, I chose to work with the current version of MySQL as the ODBC drivers for MySQL are much more refined. Secondly, with several Windows based administration tools that work well with MySQL, the maintenance burden has been made much lighter. Initially, I wanted to take an existing web site that was run off of Microsoft Access files and see how much effort would go into getting it up and running on MySQL. The website I had available to work with is a site that I run and maintain is http://www.wildrocketry.com. Every single page has at least one database call, and many have two or three database calls. Converting the site to MySQL done to improve the speed of the responses. With the entire site being finished, I wanted to make the transition to MySQL as painless as possible. Using MySQL and the DBTools utility described in this article, I was able to very easily get MySQL up and running, create a user for the web site access, and import the data from the Access files directly into MySQL. But simply changing the ODBC configuration from pointing to the Access file to pointing to the MySQL database, transitioning was extremely simple. The only changes to the SQL queries had to change the format of date related fields. This is a process you would have to do if you were switching from Access to Microsoft's SQL Server. The results were quite satisfying. Based on my results with the WildRocketry.com site, I will definitely be using MySQL for even larger and more ambitious projects.
Where do you get MySQL?
Installing MySQL The first thing you will want to do is change the root password. The default installation does not have a password. Use the format of the following example:
You are now ready to get started using MySQL!
Managing MySQL
DBTools also has a data import wizard to help migrate data from other data sources such as Access, Postgress, SQL Server, or other ODBC compliant database. Once you have your data in place, and a DSN created to point to the correct database and table. You can now access the data as you would from a normal ODBC connection. In Part 2 we'll look at how to perform common database tasks using mySQL!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||