Phpmyadmin:无法登录MySQL服务器

时间:2015-01-26 21:25:44

标签: php mysql phpmyadmin

是的,关于臭名昭着的错误的另一个问题" 无法登录MySQL服务器"。

我在StackOverflow上阅读了有关此问题的所有问题/答案,但这些都没有解决我的问题

Apache (v2.4.9)和 Php (v5.5.14)运行正常,现在我还需要安装 phpmyadmin 来管理数据库,所以我遵循这个简单的guide

但是当我登录phpmyadmin时,我发现自己面临这个错误

enter image description here

这是我的 /Webserver/phpmyadmin/config.inc.php 配置文件

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 4.3.8 setup script
 * Date: Mon, 26 Jan 2015 20:49:39 +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]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';

/* End of servers configuration */

$cfg['DefaultLang'] = 'it';
$cfg['blowfish_secret'] = '54c6a5b31f8851.41343068';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>

我试图编辑这个

$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';

到这个

$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = '127.0.0.1';

或者

$cfg['Servers'][$i]['verbose'] = '127.0.0.1';
$cfg['Servers'][$i]['host'] = '127.0.0.1';

但问题仍然存在


更新

我使用此命令解决了我的问题:

/usr/local/mysql/bin/mysqladmin -u root password 'newpassword'

1 个答案:

答案 0 :(得分:0)

不确定这是否可以解决您的问题 - 但是,当我删除文件夹C:\ lamp \ data中的文件时 - 例如日志文件等,它让我再次登录到phpmyadmin

相关问题