mysql执行sql脚本

1.首先登录mysql

mysql -hlocalhost -uroot -p

输入密码

2.执行:

source [绝对路径+文件名]

例如:source E:/create_db.sql

若脚本中只含建表语句,则需要在use db_xxx后再执行脚本

猜你喜欢

转载自blog.csdn.net/u010292561/article/details/79595650
今日推荐