如何将一个.sql文件导入到mysql数据库中的一个数据库里

如何将一个.sql文件导入到mysql数据库中的一个数据库里
2025-01-17 09:39:37
推荐回答(1个)
回答1:

D:\> mysql -uroot -ppassword
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18508
Server version: 5.1.22-rc Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use db
Database changed
mysql> source D:\file.sql
..
..
..
..