给数据库授权,否则程序、navicat无法连接数据库的,每创建一个数据库都要给数据库授权

给数据库授权,否则程序、navicat无法连接test1数据库的

mysql> grant all privileges on test1.* TO 'root'@'%' identified by 'jenkins@123' with grant option;
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

 

posted @ 2019-02-17 19:00  effortsing  阅读(534)  评论(0编辑  收藏  举报