在 ubuntu 中安装 xampp 后,phpMyAdmin 要求输入用户名和密码:
After installing xampp in ubuntu, phpMyAdmin is asking for username and password:
我在 ubuntu 中安装了 xampp。 phpMyAdmin 现在要求身份验证并询问用户名和密码。我该如何解决这个问题。
尝试默认用户名 "root" & 密码为空 " "
使用终端输入以下命令转到 config.inc.php 文件:
sudo gedit /opt/lampp/phpmyadmin/config.inc.php
文件将在 gedit 中打开。
现在打开文件并编辑
$cfg['Servers'][$i]['auth_type'] = 'localhost';
到
$cfg['Servers'][$i]['auth_type'] = 'cookie';
并保持
username: root
password: ''
还要确保带有用户名和密码的行未被注释:
//$cfg['Servers'][$i]['user'] = 'root';
//$cfg['Servers'][$i]['password'] = '';
确保从上面的行中删除 //。
我在 ubuntu 中安装了 xampp。 phpMyAdmin 现在要求身份验证并询问用户名和密码。我该如何解决这个问题。
尝试默认用户名 "root" & 密码为空 " "
使用终端输入以下命令转到 config.inc.php 文件:
sudo gedit /opt/lampp/phpmyadmin/config.inc.php
文件将在 gedit 中打开。
现在打开文件并编辑
$cfg['Servers'][$i]['auth_type'] = 'localhost';
到
$cfg['Servers'][$i]['auth_type'] = 'cookie';
并保持
username: root
password: ''
还要确保带有用户名和密码的行未被注释:
//$cfg['Servers'][$i]['user'] = 'root';
//$cfg['Servers'][$i]['password'] = '';
确保从上面的行中删除 //。