RROR 1045 (28000): Access denied for user 'root'@'192.168.2.12 (using password:
这个是mysql报出的关于权限不够
解决办法:
1、登陆mysql,mysql -uroot -hlocalhost -p
2、use mysql(必须是此库,系统)
3、update user set host='%' where user='root';(可以先清空匿名和没密码就能登陆的,可查看select * from mysql.user\G;)
4、grant all privileges on *.* to root@'%' identified by 'root' WITH GRANT OPTION;