Access转MySQL方法
添加评论
2010年2月18日
197 views
1.先从网上下载一个软件:DB2MYSQL,运行db2mysql.exe;
2.【File】->【Open Database】,打开用Access建好的数据库,选择所要转换的表和所要转换的字段,点击【Start】开始转换;
3.在指定目录下会生成一个.sql文件;
4.在DOS界面下进入MySQL:mysql -uroot -p,输入密码;
5.建立一个新数据库,比如:create database new_database(数据库名),建一个与待转换Access数据库表相同的新表,例如:create table new_table (id int, miRNA_name char(20), gene_id int, gene_name(20), score char(5));
6.mysql>use new_database;
mysql>source d:/mysql.sql;(.sql文件完全路径)
7.执行成功。最后也可以用select * from new_table;查看新建表中的记录,看是否添加成功。
No related posts.

最近评论