To change the root password in phpMyAdmin follow these steps:
- Log in to the database directly using command:
mysql -h <your_hostname> -u root
- Run the following SQL command:
UPDATE mysql.user SET Password=PASSWORD('Your new Password') WHERE User='root';
- Open the following file:
<XAMPP_INSTALLATION_FODLER>\phpMyAdmin\config.inc.php
- Change the following values:
and$cfg['Servers'][$i]['auth_type'] = 'config'; to $cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['password'] = ''; to $cfg['Servers'][$i]['password'] = 'new_password';
No comments:
Post a Comment