如何在phpMyAdmin中禁用root登录?
1 | https://www.howtoing.com/how-to-disable-root-login-in-phpmyadmin |
1. 创建test账号,赋予全所权限
2. 禁用 root 登陆
1 2 | # cd /home/wwwroot/default/phpmyadmin # vi config.inc.php |
加到这行下面 $cfg[‘Servers’][$i][‘AllowNoPassword’] = false;
1 2 | $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['AllowRoot'] = FALSE; |