赞
踩
mysqldump: Got error: 1045: Access denied for user ‘root’@’localhost’ (using password: YES) when trying to connect
解决办法:
登录mysql客户端
mysql -hserverip -uroot -p 或者 mysql -u root
mysql> use mysql;
set password for 'root'@'localhost' =password('');
flush privileges;
显示当前的user:
mysql> SELECT USER();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。