摘要:
-- 创建用户 create user 'username'@'%' IDENTIFIED by 'password'; -- 给用户权限 GRANT ALL PRIVILEGES on weather.* to 'weather'@'%'; 阅读全文
摘要:
-- 找到mysql配置文件修改 /etc/mysql/mysql.conf.d/mysqld.cnf #加上下面的 可以不要密码登录 #skip-grant-tables #skip-networking 然后重启mysql服务 service mysql restart 情况一:没有root用户 阅读全文