when installing using the apt-get install phpmyadmin command, I got the dbconfig-common configuration window, entered all the data, but at the end there was an error:

ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using │ │ password: YES)

how to access mysql to complete phpmyadmin setup?

  • one
    you probably entered the wrong password. subd mysql has its own set of users that does not overlap with users of the operating system. do you connect to the subd by using the $ mysql -uroot -p ? - aleksandr barakin
  • if not, try resetting the password for the mysql user root . - aleksandr barakin

1 answer 1

you probably entered the wrong password. subd mysql has its own set of users that does not overlap with users of the operating system.

if you cannot connect to the subd by using the $ mysql -uroot -p and entering the password you used does not work, then try resetting the password for the mysql user with the name root .

and after that you can repeat the post-installation configuration of the phpmyadmin package:

 $ sudo dpkg-reconfigure phpmyadmin