access|mysql| Program | data | Database Recently, I am in order to develop an information management system for the company from the previous trial run development machine (Windows NT + IIS4.0 + Access) Migrating to a real Linux server (Apache1.3.12 + PHP 4.03 + MySQL 3.23.26), where the contents of the dozens of tables in the database migrated, began to tip me some twists and starts to download some MySQL client software or database management software from the Internet. , write better software have data migration function, but its migration way is only two kinds, one is to adopt the file introduction way, this kind of method in processing the database has and delimiter the same character, will produce error, especially in the processing access in the Memo field, it is easy to error, The final result is that the data after the export is not much or less. And the other one to support the direct import of ODBC features strong, the basic can not mistakenly import the contents of each table, but unfortunately, this must be built in access to the table in the field is English, such as in Access in the field is the Chinese name, generally also error, can not successfully import.
For this I had to spend a little time to write two small programs, used to transfer the contents of the Access database to MySQL, after the use, the effect is good, special here to give you a try or judge.
Let's outline how to use it,
1, create a "system DSN" for access's database;
2, according to the name of each table in Access database, set up the corresponding empty table in MySQL;
3, running fdlist.php;
4, running import.php;
5, each run 3, 4 steps to migrate a table, and then modify the Access source table name in fdlist.php and the name of the target table in MySQL, then run 3, 4 steps until all the tables are migrated.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following is the fdlist.php source program
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<style type=text/css>
BODY,TD,LI,DIV,P,PRE,A,B,H1,H2,H3,H4 {font-family:verdana;font-size:9pt;line-height:18px;color: #a00000}
</style>
?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.