Home  >  Article  >  Database  >  mysql创建的用户当地无法登录

mysql创建的用户当地无法登录

WBOY
WBOYOriginal
2016-06-07 16:25:40986browse

mysql创建的用户本地无法登录 今天遇到一个诡异的问题,mysql创建的用户在本地无法登录,找了半天,郁闷死了,发现原来是mysql.user表中有一条空记录造成的 ? delete from mysql.user where user=''; ? 删除完后重启mysql就可以了

mysql创建的用户本地无法登录

今天遇到一个诡异的问题,mysql创建的用户在本地无法登录,找了半天,郁闷死了,发现原来是mysql.user表中有一条空记录造成的

?

delete from mysql.user where user='';

?

删除完后重启mysql就可以了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn