mysql ERROR 1045 (28000): 错误解决办法

1.mysql安装路径下找到配置文件my.ini  ,然后将其打开,可以选择用记事本打开

打开后,搜索mysqld关键字

找到后,在mysqld下面添加skip-grant-tables,保存退出。

 

如下:

# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this 
# file.
#
# server_type=3
[mysqld]
skip-grant-tables

# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# The Pipe the MySQL Server will use
# socket=mysql

 

你可能感兴趣的:(mysql)