MySQL Error 1045, “Access denied for user 'user'@'localhost' (using password: YES)”

依然范特西╮ 提交于 2019-12-01 18:18:28

% means that the new user can access the database from any host.

However, if you supplied the CREATE USER statement would be much more useful.

In addition, check MySQL Manual below, where it explains why a user should have both @'localhost' and @'%':

MySQL Reference Manual - Adding Users

restarting mysql server + "flush privileges;" command solved it for me

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