The default location of the phpMyAdmin config file is: C:\xampp\phpmyadmin\config.inc.php
- Open the config.inc.php file in a text editor.
- Search for "$cfg['blowfish_secret'] = 'xampp'". Replace 'xampp' with a random string of up to 46 characters. This will be the encryption key.
- Search for "$cfg['Servers'][$i]['auth_type']". Change the value from 'config' to 'cookie'.
- Set the 'user' and 'password' options to empty strings. When you are done, it should look like this:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
- Save your changes.
Now lets check to make sure the changes were made correctly:
- Open the XAMPP control panel and start Apache and MySQL.
- Click the "Admin" button next to MySQL to open phpMyAdmin.
- Log in by specifying "root" as the user. Leave the password blank, because by default the root user doesn't have a password.
- Once you have logged in, you should set a password for the root user. To do this, click "Change password" Under "Actions". And enter a password. You may want to save this password in a password protected file so that you can retrieve it later if you forget what you set it to.
Now you have successfully configured phpMyAdmin.
No comments:
Post a Comment