备份mysql数据库注意

来源:互联网 发布:练听力软件 编辑:程序博客网 时间:2024/05/20 06:27

1.在电脑属性-》高级系统设置-》环境变量-》用户变量path添加mysql的bin路径,确定后重启电脑;

2.在命令提示符cmd里执行操作系统命令 mysqldump -uroot -p database > database.sql,这里不以分号结尾。

3.the user specified as a definer('root'@'%') does not exist when using LOCK TABLES
报错处理:在mysql命令行执行 grant all privileges on *.* to root@"%" identified by "."; flush privileges;

0 0
原创粉丝点击