E
E
Evgeny Romashkan2018-04-03 00:14:24
PHP
Evgeny Romashkan, 2018-04-03 00:14:24

Docker, can't login to mysql via phpmyadmin?

I am using laradock. Accidentally deleted the root user in phpmyadmin.
I don't understand how to restore it. I went into the container with mysql. Set up users there. Gave all rights.
I can't access them via phpmyadmin. I'm confused.. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-03
@EvgeniiR

The easiest way is to rebuild the container, as Maxim Fedorov advises . But also, before building the container, you need to delete the "../data/mysql" (or "../data/mariadb") folder, since the database settings (including users) are stored there. It should be borne in mind that in this case you will lose all the data that is stored in the database.
If this option is not suitable, then you need to restore users through the console and do not forget to give them permissions for remote access (in the Host column, the user must have %).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question