R
R
Romi2021-08-29 12:24:29
Docker
Romi, 2021-08-29 12:24:29

Errors in phpMyAdmin after 'docker-compose build mysql' in Laradock - how to revert old mysql version back?

I have Laradock

I made changes to createdb.sql to add another database, but after rebooting (down - up) - the database was not added

Then I decided to do 'docker-compose build mysql'

And after the rebuild, phpMyAdmin began to crawl out on my home page mistake:

Notice in ./libraries/classes/Charsets.php#154
Undefined index: utf8mb3


I googled it, it's somehow related to versions and is generally solvable ( https://stackoverflow.com/questions/67421885/phpmy... ) - but I have some Laradock - I can't just get into the code and fix everything or something like that.

In addition, this error has now begun to come out in other projects. And I understand that I do not understand something.

Does he do this 'docker-compose build mysql' in one place or what? (I put a separate Laradock on each project and even make DATA_PATH_HOST different for it)

In general, I don’t know how to fix it back now.

If someone shares their experience - I will be glad.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Romi, 2021-08-29
@romicohen

In general, I deleted all docker images in the system and reinstalled the necessary one through
docker-compose up -d nginx mysql phpmyadmin
everything seems to be working fine now. here is the output it delivered:

[email protected]:~$ docker images
REPOSITORY              TAG          IMAGE ID       CREATED             SIZE
laradock_nginx          latest       7503362ab5cf   9 minutes ago       27.6MB
laradock_php-fpm        latest       7726cbc0043f   10 minutes ago      828MB
laradock_workspace      latest       91b1c8d7b9b3   39 minutes ago      1.16GB
laradock_phpmyadmin     latest       0afaaec4b774   About an hour ago   474MB
laradock_mysql          latest       f3e20ed0962d   About an hour ago   514MB
laradock/php-fpm        latest-7.4   3d09282b0597   37 hours ago        488MB
laradock/workspace      latest-7.4   31867821fd5c   38 hours ago        798MB
nginx                   alpine       1318bf5f63b4   41 hours ago        22.8MB
mysql                   8.0          5a4e492065c7   12 days ago         514MB
docker                  19.03-dind   fa3b7a5678ec   5 weeks ago         236MB
phpmyadmin/phpmyadmin   latest       2e5141bbcbfb   2 months ago        474MB

while the solution is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question