mysql报错解决

1044, "Access denied for user 'root'@'192.168.0.%' to database 'test'"

是因为创建这个test数据库时候没有给这个数据库授予被操作权限,所以报错,授权即可

解决:

grant all privileges on test.* TO 'root'@'%' identified by 'jenkins@123' with grant option;
flush privileges;

 

posted @ 2019-02-16 22:14  effortsing  阅读(184)  评论(0编辑  收藏  举报