Edited by jeon33 at 7-3-2023 02:56 AM
If you are unable to login to phpMyAdmin due to a forgotten password, you can reset it by following these steps: Open a terminal window and log in to MySQL as the root user by typing the following command and entering your root password when prompted: mysql -u root -p
- Once you are logged in, enter the following command to change the password for the phpMyAdmin user (replace 'newpassword' with your desired password): UPDATE mysql.user SET authentication_string=PASSWORD('newpassword') WHERE User='phpmyadmin';
- Then, flush the privileges by running the following command: FLUSH PRIVILEGES;
- Finally, exit the MySQL prompt by typing: exit You should now be able to log in to phpMyAdmin using the new password.
Regarding the error you are getting when trying to change the password through the terminal, it would be helpful if you could provide more information about the error message you are seeing. However, if you are unable to open LAMP, uninstall it, or reinstall it, you may need to check if there are any processes that are preventing you from doing so. You can use the following command to check if Apache or MySQL is running:
sudo service apache2 status sudo service mysql status
If either of these services is running, you can stop them by typing:
sudo service apache2 stop
sudo service mysql stop
Then, you can proceed with the installation or uninstallation of LAMP.
|