执行mysql脚本

方法1:

mysql -uroot -p123456 -Ddatabasename < sql文件路径

方法2:

source 路径全名

. 路径全名

原文地址:https://www.cnblogs.com/feilongblog/p/4315706.html