MySQL_备份和使用source还原是出错

1、备份出错:出现Access denied for user ‘root’@’localhost’ (using password:YES):
参考链接
打开my.ini文件在最后一行添加
“skip-grant-tables”,保存并关闭文件。
重启即可。
2、出错:
在这里插入图片描述修改:
连接数据库时应mysql -hlocalhost -u root - p --default-character-set=utf8

猜你喜欢

转载自blog.csdn.net/qq_45915957/article/details/106894136