mysql access denied 的解决方法

wkubuntu@ubuntu:~$ mysql --user=root --password=
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1698 (28000): Access denied for user 'root'@'localhost'


在5.7及之后的版本中,若要以root用户登录系统,必须使用sudo

你可能感兴趣的:(mysql access denied 的解决方法)