mysql -u root -p use mysql; select host, user, authentication_string, plugin from user; grant all privileges on *.* to \'root\'@\'%\' identified by \'password\';//设置所有人可访问 flush privileges;//刷新 相关文章: 2022-12-23 2021-08-16 2021-12-14 2022-01-29 2022-12-23 2022-12-23 2021-10-18