例如你在mysql下创建的数据库名称是test

cmd下

use test ;

grant all privileges on *.* to root@'%' identified by "密码";(授予权限)

flush privileges;(刷新)

相关文章: