- I downloaded
WAMPServer 3.2.0
and installed it onWindows 10
. - I started
PHPMyAdmin
, logged in to themysql
database, and
changed the empty password of ‘root’ user to a real password. - I Started the
Adminer 4.7.5
and tried to log in themysql
database, with the ‘root’ user, but failed.
“Access denied for user ‘root’@’localhost’ (using password: YES)”.
The same thing happens with any other users, too.
What can I do to solve this?
3
Answers
Problem solved: Right-click on WampServer icon on the system tray, select "Tools" and select "Invert Default DBMS MariaDB <==> MySQL". WampServer restarts, and after this I can login into the "mysql" database with any user.
As of WAMPServer 3 you get MySQL and mariaDB installed.
So they cannot both run on port 3306, in fact mariadb will listen on 3307 and MySQL will listen on 3308 by default.
So when you run adminer you have to tell it which database server instance you want to access by specifying the port number the database is listening on. You can do this by adding the port to the host
Server Name
field on the login like so:Set a password MySQL if empty
run
try to log in adminer as you set