I am doing a LAMP installation for the first time.
I installed Apache, PHP, and MySQL flawlessly on my Ubuntu 16.04 through the terminal. The last thing that I installed was PHPMyAdmin.
After I installed it I accidentally typed my username as phpmyadmin
and some password. After that when I try to login and create a database, it says No Privilege
.
I also tried default "root" with and without a password, but I still can't login. Then I tried to reinstall it, and also I tried dpkg-reconfigure
, but it gave me some error message which had options like abort, retry, etc.
I also tried to remove all of the PHPMyAdmin data/files, and cleared all my browsing history as well as my cookies. The last thing that I tried was to use an alternative database software - Adminer. After I installed the software, it didn't ask me to setup an admin account.
When I tried to use it, I couldn't login because I don't know what the user was. I tried 'root' with or without password but still couldn't login. When I tried to login to my account in PHPMyAdmin, I was surprised that it worked and logged in. Unfortunately I still can't create a database and it has a dialogue like PHPMyAdmin : 'Access denied for user 'phpmyadmin'@'localhost'
.
phpmyadmin
has no security mechanism of its own. It uses the parameters of the MySQL database, which you store in its configuration file calledconfig.inc.php
in the top level. – Jos Oct 04 '16 at 07:25