引用:
Originally posted by 蓝色大河马 at 2005-4-10 21:26
如果在本机上做测试的话还有个方法。是我在CSDN上问到的,拿来大家分享。
我的mysql装在了C:\下 。目的数据库是bb,要导入的sql文件在c:\down\bb.sql
先退出mysql,在mysql\bin目录下执行。
c:\mysql\bin&g ...
呵呵,本机就好办了,你给的办法是重定向执行,另外还有一个标准的办法。
复制内容到剪贴板
代码:
C:\Mysql\bin>mysql -uroot -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.1.10-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> source a.sql