phpmyadmin密码设置

我正在尝试为我的phpmyadmin.my config.ini文件设置一个密码

<?php /* * Generated configuration file * Generated by: phpMyAdmin 3.4.10.1 setup script * Date: Sun, 22 Jul 2012 11:33:17 +0000 */ /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = ''; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['nopassword'] = true; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'triple'; /* End of servers configuration */ $cfg['blowfish_secret'] = '500be38d07a469.36176220'; $cfg['DefaultLang'] = 'en'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; ?> 

但问题是,它让我使用任何input作为password.like(khfjsdhfj)。whats错了?我怎么能设置它?只是为了信息以前我没有任何密码login。

密码保存在数据库中。 你可以用这样的查询来设置你的数据库的权限:

 GRANT <permissions> ON <database>.<table> TO <user> IDENTIFIED BY PASSWORD '<password>'; 

您也可以尝试使用PHPMyAdmin设置权限和密码。 注意数据库权限并在那里设置密码。

PHPMyAdminlogin你的原因是你设置的

 $cfg['Servers'][$i]['nopassword'] = true; <-- If password fails try username and empty Password ... $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'triple'; 

而你显然没有在你的数据库上的密码