can not access http://localhost/phpmyadmin/
        Posted  
        
            by 
                nik parsa
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by nik parsa
        
        
        
        Published on 2012-02-07T14:33:21Z
        Indexed on 
            2012/10/15
            21:40 UTC
        
        
        Read the original article
        Hit count: 472
        
I installed wamp server2 it didn't have password and it had this error below then I went to mysql and set the password for root with this command and I can login using this password but again I can not access phpmyadmin.I restarted the services too.
update user.mysql set password=password('root') where user='root';
then i went to config.inc changed the pass to this one:
$cfg['Servers'][$i]['password'] = 'root';
again I restarted and again no result.
the phpmyadmin page:
Welcome to phpMyAdmin
Error
MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
config.inc:
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$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]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
?>
It was firstly this line $cfg['Servers'][$i]['password'] = '';
setting allow to false and restarting will not change the error either
with the help of Erika I understood that it can't read confg.inc file how to make it read from this file?
© Server Fault or respective owner