我在MySQL5上使用的是rhel 5和php 5,我的服务器已经配置好了,所有的应用程序都能顺利运行。我以超级用户身份访问mysql,密码是'anitha123‘。但是当我通过浏览器访问phpmyadmin时,它不会要求输入密码。有没有人能告诉我怎样才能像提示用户名和密码一样设置它。由于我不熟悉php mysql,请告诉我如何用简单的方式做。
发布于 2011-02-19 13:02:22
找到phpmyadmin.conf并设置身份验证,键入它为http
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http'; 发布于 2012-11-01 01:37:48
或者您可以简单地将密码添加到phpmyadmin的配置文件中。对于这个位于phpmyadmin目录中的config.inc.php文件,然后进行以下更改
找到行$cfg‘’Servers‘’password‘= '';
然后在空白字段中添加您的密码为
$cfg‘’Servers‘’password‘= 'anitha123';
并且它总是以相同的用户名和密码打开
发布于 2015-10-25 11:24:05
转到phpmyadmin并确保您有3个root用户以流畅地使用mysql。如果您在Password列中看到"No“set new password by Clicking Edit Privileges---> Change Password,选择Password选项并设置您的密码。(这三个选项都必须设置为Password Yes)。执行此操作时,请不要刷新浏览器,否则会出现错误
xampp mysql Access denied for user 'root'@'localhost' using password: YES您的用户屏幕必须如下所示。
User name Host Password Global privileges
root 127.0.0.1 Yes ALL PRIVILEGES Yes
root ::1 Yes ALL PRIVILEGES Yes
root localhost Yes ALL PRIVILEGES Yes吃完这个。只需使用此设置->打开phpmyadmin目录中的config.inc.php文件
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';现在打开phpmyadmin。phpmyadmin将要求您提供密码。如果您提供正确的密码,您将能够登录。
https://stackoverflow.com/questions/5048895
复制相似问题