Home > php教程 > php手册 > 用phpmyadmin更改mysql5.0登录密码

用phpmyadmin更改mysql5.0登录密码

WBOY
Release: 2016-06-13 12:30:28
Original
1030 people have browsed it

update mysql.user set password=old_password('新密码') where user='用户名'   
注意这个old_password(MYSQL函数)这样一来就把密码加密成16位,而不能用
password()这个函数,不然就加密成40位。
然后修改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了。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template