Home > Database > Mysql Tutorial > body text

手动配置phpmyadmin和mysql密码的两种方案_MySQL

WBOY
Release: 2016-06-01 13:18:30
Original
944 people have browsed it

phpmyadmin

bitsCN.com 方案一:

1.进入:mysql> 状态下输入
2.选择mysql数据库:mysql> use mysql;
3.更改user表数据:mysql> update user set password=password('新密码') where user='root';
4.激活权限:mysql> FLUSH PRIVILEGES;
5.退出mysql:mysql> quit;

更改phpmyadmin密码:找到php中配置文件config.inc.php设置$cfg['Servers'][$i]['password'] = '设置成与上面数据库一样密码';

方案二:

1.phpmyadmin
2.选择mysql数据库
3.学者user表
4.修改User为root密码

更改phpmyadmin密码:找到php中配置文件config.inc.php设置$cfg['Servers'][$i]['password'] = '设置成与上面数据库一样密码';bitsCN.com
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template