1.用命令行切换到自己安装的mysql软件的bin目录下
cd C:/Program Files/MySQL/MySQL Server 5.7/bin
2.登录输入用户名密码:
mysql -u root -p
3.切换数据库
use zsfzx
4.在导入sql文件前,修改数据库的字符设置:
set names utf8;
5.导入sql文件XXXXX.sql:
source C:/Users/Administrator/Desktop/mytest.sql
1.用命令行切换到自己安装的mysql软件的bin目录下
cd C:/Program Files/MySQL/MySQL Server 5.7/bin
2.登录输入用户名密码:
mysql -u root -p
3.切换数据库
use zsfzx
4.在导入sql文件前,修改数据库的字符设置:
set names utf8;
5.导入sql文件XXXXX.sql:
source C:/Users/Administrator/Desktop/mytest.sql