0
就像標題所說,我安裝了wamp,啓動了MySQL和Apache。他們運行完美。當我打開這個頁面:http://localhost:8080/phpmyadmin/,我寫我的ID:root和password:root它說這個錯誤:#1045無法登錄到MySQL服務器。爲什麼?1045無法登錄WAMP中的MySQL服務器
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in documentation in the doc/ folder
* or at <http://docs.phpmyadmin.net/>.
*
* @package PhpMyAdmin
*/
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'a8b7c6d'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = '127.0.0.1';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/*
* phpMyAdmin configuration storage settings.
*/
// No warning on pmadb tables
$cfg['PmaNoRelation_DisableWarning'] = true;
?>
仍然無法正常工作。 –
您是否使用默認和未經修改的WAMP配置? –
我從mysql控制檯將mysql密碼更改爲「root」,並更改了3307中使用的端口。並且這樣:#Listen 12.34.56.78:80 在httpd.conf中監聽8080 –