一、配置密码
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
二、配置auth_type
#change
$cfg['Servers'][$i]['auth_type'] = 'config';
#to
$cfg['Servers'][$i]['auth_type'] = 'cookie';
三、修改mysql密码
SET Password=PASSWORD("newpass") WHERE User="root";
privileges: FLUSH PRIVILEGES;
本文介绍了如何在MySQL中配置密码以及更改认证类型的方法。主要包括:设置服务器密码、允许无密码连接、修改认证类型从配置文件到Cookie认证,并提供了一个更新MySQL密码的SQL示例。
837

被折叠的 条评论
为什么被折叠?



