Log Mysql 1045 error occurs causes and solutions

the reason

The company has just installed server Mysql, confirm the password and privilege no problem, cmd can visit, but not on the landing Navica complex, constantly 1045
online search of the bunch, mostly using the skip-grant-tables
because the authority did not confirm the password wrong, why to skip verification, in line with the spirit of fine bars, saw a blogger say, Mysql official Bug, will give priority to match empty user login,

specific research has not been true and false, the next test, seems to be true

method

1.cmd login mysql, first check there is no localhost root access

select Host , user from mysql.user

2. Make sure you have permission to check for null user name [This is what I encountered], the solution is to delete this record

delete from mysql.user where user =''

【Mark】

Under follow-up study Console Why can log

Released four original articles · won praise 0 · Views 73

Guess you like

Origin blog.csdn.net/iamadelian/article/details/104376003