Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql:5.7 is broken #982

Closed
lindevel opened this issue Jul 4, 2023 · 7 comments
Closed

mysql:5.7 is broken #982

lindevel opened this issue Jul 4, 2023 · 7 comments

Comments

@lindevel
Copy link

lindevel commented Jul 4, 2023

If you have 17 GB of free memory it will start (and use 17Gb of memory), if you don't have that much free memory it will fail with the following error:

mysql-1    | 2023-07-04 11:41:23+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.42-1.el7 started.
mysql-1    | 2023-07-04 11:41:44+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
mysql-1    | 	command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.TEq7KCCdzr
mysql-1    | 	
mysql-1 exited with code 1

It also uses a lot of CPU on startup.
8.0 works without these problems

@lindevel
Copy link
Author

lindevel commented Jul 4, 2023

Last non-broken version: 5.7.7

@tianon
Copy link
Member

tianon commented Jul 5, 2023

See #840, #971, and possibly others for similar possibly related/duplicate issues.

@vi7
Copy link

vi7 commented Sep 6, 2023

⚠️ Warning: downgrading to 5.7.7 from other 5.7.x version might not work for the DB with the existing data.

Upgrade to 8.0.x fixed the issue in my case and worked well with the existing DB data

@andrew-aladjev
Copy link

andrew-aladjev commented Sep 27, 2023

As I understand it correctly, mysql 5.7.43 spawns 70% of RAM and don't want to read innodb_buffer_pool_size configuration settings. Meanwhile 5.3.37-5.7.43 has some sort of memory leak and will be killed by OOM. 5.3.36 fills 70% RAM, and than calmly reduces to 48%. Anyway this behaviour is not fine without any databases (!).

@smoothdvd
Copy link

https://forums.docker.com/t/mysql-5-7-docker-image-breaks-the-system/132678/3

Add these setting to solved the issue:

mysql:
  image: mysql:5.7
  ulimits:
    nofile:
      soft: "65536"
      hard: "65536"

Worked in Manjaro / ArchLinux

@enote-kane
Copy link

@smoothdvd Thanx that made it for me as well (on Arch):

docker run --rm -p 3306:3306 --memory 1G --ulimit nofile=65536:65536 mysql:5.7.44

But I would call this an actual regression in MySQL (Oracle), not the fault of the Docker image.

@tianon
Copy link
Member

tianon commented Dec 18, 2023

Unfortunately, MySQL 5.7 is now EOL upstream 🙇 ❤️

https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-44.html

@tianon tianon closed this as completed Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants