给数据库授权,否则程序、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)

猜你喜欢

转载自www.cnblogs.com/effortsing/p/10392251.html