MySQL 5.0 密码加密与修改步骤
执行 SQL 语句:update mysql.user set password=old_password('新密码') where user='用户名'
需注意此处必须使用 old_password(MYSQL 函数),该函数会将密码加密为 16 位格式
切勿使用 password() 函数,否则会导致密码被加密为 40 位,造成不兼容
phpMyAdmin 配置调整
完成数据库层面的密码修改后,接下来需要调整 phpMyAdmin 的配置
具体配置代码如下:
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed完成上述两步操作后,系统安全性得到提升,心理上也更加踏实
随后即可部署个人程序,并为大斌搭建 BLOG
OK,明天就该弄下VIRTUAL HOST了。