Windows平台下下载:http://dev.mysql.com/downloads/mysql
问题1:show databases报错
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show databases' at line 2
解决
方法一:进入mysql服务端输入:
GRANT ALL PRIVILEGES ON *.* TO '数据库用户名'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
再更新权限:flush privileges;
方法二:进入mysql服务端输入:
create user 'root'@'%' identified by '密码';
grant all on *.* to 'root'@'%';
alter user 'root'@'%' identified with mysql_native_password by '密码';