![]() |
|
|
Published: Thursday, September 28, 2000 By Kerry Garrison
Introduction
1. How many modifications to code would be needed to make a site run properly? I armed myself with a RaQ3 unit and set out to do some testing. As some of you know from previous articles, I run a small amateur rocketry website (http://www.wildrocketry.com) that is all ASP pages and uses some SQL Server and Access 2000 files. In a recent article, I began converting this data to MySQL under Windows 2000. I thought trying to move the WildRocketry site would be a pretty good test case because of the mixed databases, and tons of custom coding that went into the project.
Getting Started
At this point I now had the server configured and FTP'd my entire directory structure over to the new box.
Granted, as a technical person by nature, I am not inclined to be reading manuals until desperation sets in.
I quickly pulled up the First problem solved, the confidence was rising, now to figure out how to get the data from Access into MySQL. The first thing that came to mind was to do it via ODBC. I went back to the MySQL website and downloaded the latest MyODBC drivers. After creating an ODBC connection to the MySQL database, I fired up Access 2000, loaded up my database file and then exported the tables using the ODBC Connection. This mostly worked, but I was slightly disappointed in the performance of the export. At this point I started looking for a better approach to the problem. The answer I finally decided on was to use DBTools. DBTools is a free database manager for MySQL that allows you to import data from Access files (or any other ODBC connection) directly into MySQL. The performance was much better, and as a bonus, DBTools makes managing the MySQL database a real breeze. DBTools is available at http://dbtools.vila.bol.com.br/ and is also distributed for free. Working with DBTools is very similar to working with SQL Server's Enterprise Manager. (For more information on DBTools, be sure to read my earlier article: Using MySQL under Windows NT!)
So far, getting MySQL running was no problem, getting the data imported was not a major deal. Finally, using the web-based control panel, I created a data source to the MySQL tables so that Chili!Soft could now work. This is where my first real issue came into play. It seemed that nothing I did would make my ASP pages recognize the data source name. I scoured newsgroups, I poured over message archives, re-read FAQ's and found nothing. On a whim, I tried experimenting with case sensitivity, sure enough, that was the problem all along. By changing the case of the data source in the control panel and in the ASP pages to all lower-case, my pages magically started working. This would have been nice to see this is a FAQ at either Cobalt or Chili!Soft's website. Problem solved, it was time to start testing everything. The pages displayed fast, the database access was much faster than the old Access files. Then I tried the feedback form that uses the CDO component, this did not work either. Fortunately, this one was easy to find, but more difficult to fix. In order to be able to use SMTP email, you need to purchase the Chili!Soft add-on package called SpicePack which runs an additional $249.00. Besides SMTP email, SpicePack also gives you these other features:
Summary Happy Programming!
Kerry Garrison is the Senior Sales Engineer for Dedicated Hosting Products at XO Communications.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||