1.用root 进入mysql后
2.使用GRANT语句
3.进入mysql库修改user表
mysql>set password =password('你的密码');
mysql>flush privileges;
2.使用GRANT语句
mysql>grant all on *.* to 'root'@'localhost' IDENTIFIED BY '你的密码'with grant option ;
mysql>flush privileges;
3.进入mysql库修改user表
mysql>use mysql;
mysql>update user set password=password('你的密码') where user='root';
mysql>flush privileges;
另外,设置phpmyadmin是否需要验证登录的方式是,
修改 E:\cg\wamp\apps\phpmyadmin4.0.4\config.inc.php 文件中的
$cfg['Servers'][$i]['auth_type'] = 'config'; //免登录
$cfg['Servers'][$i]['auth_type'] = 'cookie'; //需要登录