[ MySql ] 宝塔安装后设置root账号可外部访问配置
8.X 版本的配置
mysql> create user 'root'@'%' identified by 'a123456';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on *.* to 'root'@'%';
Query OK, 0 rows affected (0.00 sec)
8.0之前的配置
mysql> grant all privileges on *.* to 'root'@'%' identified by 'PASSWD';
标题:[ MySql ] 宝塔安装后设置root账号可外部访问配置
作者:llilei
地址:http://solo.llilei.work/articles/2023/08/27/1693115195804.html