MySQL said: Access denied for user 'root'@'localhost' (using password: NO)"

自古美人都是妖i 提交于 2020-01-16 13:53:18

问题


I am trying to create a database with Sequel Pro and it keeps coming up with an error "Unable to connect to host because access was denied.

Double-check your username and password and ensure that access from your current location is permitted.

MySQL said: Access denied for user 'root'@'localhost' (using password: NO)"

I have mySQL server running on my Mac. Not sure what I am doing wrong. Any help would be appreciated.


回答1:


Newer versions of MySQL use a temporary password after setup, and you can use mysqladmin to set it to something permanent.

mysqladmin -u root -p password


来源:https://stackoverflow.com/questions/48812947/mysql-said-access-denied-for-user-rootlocalhost-using-password-no

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!