docker mysql 没有 root 用户,需要创建 root
- flush privileges; 解决 ERROR 1290 (HY000): The MySQL server is running with the –skip-grant-tables option so it cannot execute 这个问题
- CREATE USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘123’;
- GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION;
- flush privileges;