红联Linux门户
Linux帮助

Access denied for user 'wuqh'@'localhost'(using password: NO

发布时间:2015-11-06 15:33:48来源:linux网站作者:wuqh_thu

我的情况为:

通过 sudo apt-get install mysql-server安装,在安装过程中已经设置了密码。

安装后想要打开mysql在命令行输入: mysql

此时报错:Access denied for user 'wuqh'@'localhost' (using password: NO)


解决办法:

打开时在命令行输入:  mysql -uroot -p

然后会提示你输入密码,此时只要输入密码就好了。