Update from PHP 5 to PHP 7.0 - PHPmyAdmin will show two server logins: localhost / localhost:3306 I updated my Linux 14.04 LTS to 18.04 and had to downgrade the PHP 7.2 to 7.0 as I need to run some software which is not capable of the preinstalled PHP 7.2. I used PHP 5 so far.

After I got everything runnning now, MySQL, Apache and PHP I created a new database and now I get a Notification that the control user can't be connected and that 'pmp'@localhost has denied access.

This appears when I log into server @ localhost. 

If I choose localhost:3306 everything works fine. But I do not know why I have two server logins?

I'm somehow confused, that I get two servers to choose from (localhost and localhost:3066) which I would not have expected. Can I somehow delete the localhost-access for PHPmyAdmin and only enable localhost:3306?

Any idea what I have to do? I'm a database newbie. Best
There are two ways to connect to the mysql on the localhost. One is the connection via network @localhost:3306 and another is the connection through the filesocket like /tmp/mysql.sock. Filesocket connection is preferred due to the lower overhead and mysql library choose it if available when connection to the localhost requested. I have no clue why they are separated now.

If you want to connect to the mysql only locally then networking can be disabled completely in the my.cnf so all connections are forced to be filesocket-based. That is also a bit more secure as far as no one can connect to the mysql over the network.