I have a local Web that can be accessed every day from some other pc. I have done are:
- I set the root password for MySQL
- Then I have to adjust it to the database password (database.php) ---> that can still access my local web. And it works.
Then I set the password for phpmyadmin via localhost / security (I enter the same password). But the first problem arises when this time I could not access to localhost / phpmyadmin, but sorry I forgot to printscreen description of what appears in the red box.
I'm looking for a solution and it was suggested to adjust also the password that has been made in config.inc.php. but this error persists and still can not access to phpMyAdmin.
I try to find a solution and I found another way to get in by using 127.0.0.1/phpmyadmin address to access it. And made it into phpmyadmin.
In this case I concluded that I failed to set a password phpmyadmin. Then I tried to set the password again via phpMyAdmin users click the tab --- I select root and edit the root password, then click generate (still with the same password). So from this peak....
After all of this... ultimately what happens is I can not access my local web, with the following caption:
A Database Error Occurred Unable to connect to your database server using the Provided settings. Filename: C: \ xampp \ system \ Database \ DB_driver.php Line Number: 124
At the same time I can not access also to phpmyadmin despite entering the correct username and password ... stupidly before this I did not make a backup of the database and htdocs first.
I want to go back to my local web access and phpMyAdmin as well.
I concluded that I had made a mistake so that the database has been locked, so it can not accessed my local web.
This is my config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mypassword';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';