报错:1045 access denied for user 'root' 。。。
解决:
select user,host,password from mysql.user
发现授权root远程访问%,但密码不对
重新配置root权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '1qweasdA' WITH GRANT OPTION;
正确的写法是先创建用户
CREATE USER 'root'@'%' IDENTIFIED BY '1qweasdA'; 再给用户授权
grant all privileges on *.* to 'root'@'%' ;