mysql 命令行

mysql 开启 root 远程访问

grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;

mysql 导入sql文件

source d:/dbname.sql 
原文地址:https://www.cnblogs.com/zhanghanwen16/p/9604673.html