# \#mysql

**URL:** https://discuss.circleci.com/tag/mysql/117.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [\[cimg/mysql:8.0\] exited with 137](https://discuss.circleci.com/t/cimg-mysql-8-0-exited-with-137/53184)

<div class="topic-metadata">

**Author:** [@eyalroth](https://discuss.circleci.com/u/eyalroth)\
**Replies:** 1\
**Last updated:** [May 5, 2025, 10:24am UTC](https://discuss.circleci.com/t/cimg-mysql-8-0-exited-with-137/53184 "2025-05-05T10:24:22Z")

</div>

We started getting in multiple projects that use the image cimg/mysql:8.0: exited with error (exited with 137) at the end of the “container step” output. The rest of the output seems to be the same as before. While…

---

## [Unable to connect to Mysql server -- No connection could be made because the target machine actively refused it](https://discuss.circleci.com/t/unable-to-connect-to-mysql-server-no-connection-could-be-made-because-the-target-machine-actively-refused-it/46407)

<div class="topic-metadata">

**Author:** [@leuter0](https://discuss.circleci.com/u/leuter0)\
**Replies:** 1\
**Last updated:** [February 1, 2024, 7:08am UTC](https://discuss.circleci.com/t/unable-to-connect-to-mysql-server-no-connection-could-be-made-because-the-target-machine-actively-refused-it/46407 "2024-02-01T07:08:42Z")

</div>

Please see the following config.yml. The job db-setup can be run successfully. When it runs build-and-test, it failed at “Run tests” because it cannot connect to the mysql database. The error is MySql.Data.MySqlClient…

---

## [Unable to connect to a remote mysql server](https://discuss.circleci.com/t/unable-to-connect-to-a-remote-mysql-server/48406)

<div class="topic-metadata">

**Author:** [@noobmaster](https://discuss.circleci.com/u/noobmaster)\
**Replies:** 1\
**Last updated:** [June 19, 2023, 11:20am UTC](https://discuss.circleci.com/t/unable-to-connect-to-a-remote-mysql-server/48406 "2023-06-19T11:20:41Z")

</div>

Hi, After failing to run migrations on a mysql container in circleci itself, I am now trying to connect to a remote mysql server. Now from my local machine I can use the mysql command for remote login , but the same comm…

---

## [Circleci/mysql:8.0.21 + cimg/ruby:2.7.4-browsers failing](https://discuss.circleci.com/t/circleci-mysql-8-0-21-cimg-ruby-2-7-4-browsers-failing/41503)

<div class="topic-metadata">

**Author:** [@jamesarosen](https://discuss.circleci.com/u/jamesarosen)\
**Replies:** 5\
**Last updated:** [February 11, 2022, 4:59pm UTC](https://discuss.circleci.com/t/circleci-mysql-8-0-21-cimg-ruby-2-7-4-browsers-failing/41503 "2022-02-11T16:59:02Z")

</div>

We use the circleci/mysql:8.0.21 image for testing: - image: circleci/mysql:8.0.21 auth: username: $DOCKERHUB\_USERNAME password: $DOCKERHUB\_PASSWORD command: | --sql\_mode="NO\_ENGINE\_SUBSTITUTION" --d…

---

## [Next-Gen MySQL Convenience Image Beta](https://discuss.circleci.com/t/next-gen-mysql-convenience-image-beta/42100)

<div class="topic-metadata">

**Author:** [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 5:59pm UTC](https://discuss.circleci.com/t/next-gen-mysql-convenience-image-beta/42100 "2022-01-04T17:59:10Z")

</div>

The next-gen MySQL image is now available in beta. The following tags are currently available: cimg/mysql:8.0.27 → cimg/mysql:8.0 cimg/mysql:5.7.36 → cimg/mysql:5.7 We would love your feedback on this new image d…

---

## [MySQL image crashes](https://discuss.circleci.com/t/mysql-image-crashes/41722)

<div class="topic-metadata">

**Author:** [@DrWh0286](https://discuss.circleci.com/u/DrWh0286)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 7:40am UTC](https://discuss.circleci.com/t/mysql-image-crashes/41722 "2021-11-02T07:40:46Z")

</div>

Hey, I have the following problem: I wanna use a mysql image in circleci to run some tests with a dummy database. Unfortunately the image crashes with this message: 2021-10-31T11:24:10.640863Z 0 \[Note\] mysqld: ready fo…

---

## ["MySQL server has gone away", but works when I ssh into the machine](https://discuss.circleci.com/t/mysql-server-has-gone-away-but-works-when-i-ssh-into-the-machine/40060)

<div class="topic-metadata">

**Author:** [@not\_a\_fan\_of\_php](https://discuss.circleci.com/u/not_a_fan_of_php)\
**Replies:** 5\
**Last updated:** [May 27, 2021, 6:39pm UTC](https://discuss.circleci.com/t/mysql-server-has-gone-away-but-works-when-i-ssh-into-the-machine/40060 "2021-05-27T18:39:45Z")

</div>

Hello everyone, I’m having some issues getting my unit tests to connect to the MySQL database. I’ve included my current config.yml below. I am running docker-compose, then installing dockerize so I can wait for port 330…

---

## [Mysql service image crashes upon use](https://discuss.circleci.com/t/mysql-service-image-crashes-upon-use/39804)

<div class="topic-metadata">

**Author:** [@FredrikFolkesson](https://discuss.circleci.com/u/FredrikFolkesson)\
**Replies:** 0\
**Last updated:** [April 16, 2021, 2:11pm UTC](https://discuss.circleci.com/t/mysql-service-image-crashes-upon-use/39804 "2021-04-16T14:11:56Z")

</div>

Hello! We are testing out CircleCi as a possible replacement for our Jenkins build server. I am therefore trying to get one of our services up and running on CircleCi. But we have the problem that MySQL crashes when o…

---

## [Circle ci image 5.7 ram version build failed](https://discuss.circleci.com/t/circle-ci-image-5-7-ram-version-build-failed/39459)

<div class="topic-metadata">

**Author:** [@nick66551](https://discuss.circleci.com/u/nick66551)\
**Replies:** 5\
**Last updated:** [March 18, 2021, 6:53pm UTC](https://discuss.circleci.com/t/circle-ci-image-5-7-ram-version-build-failed/39459 "2021-03-18T18:53:39Z")

</div>

Hello, friends~ I’m John Liu. Recently, our circle ci job build failed because our circleci/mysql:5.7-ram image build failed. The error message is: And then, when I modify to use circleci/mysql:5.7.32-ram, the error…

---

## [MySQL 5.7 (or later) Docker image with SSL?](https://discuss.circleci.com/t/mysql-5-7-or-later-docker-image-with-ssl/39439)

<div class="topic-metadata">

**Author:** [@jeff303](https://discuss.circleci.com/u/jeff303)\
**Replies:** 0\
**Last updated:** [March 16, 2021, 9:48pm UTC](https://discuss.circleci.com/t/mysql-5-7-or-later-docker-image-with-ssl/39439 "2021-03-16T21:48:57Z")

</div>

Hi all, Has anyone managed to make these Docker images set up MySQL with SSL support on the server, as outlined here? Ideally, this would be for the 5.7 image, but later would also work. Any suggestions are appreciate…

---

## [CircleCIを使った データベース連携・活用 に関するCircleCI活用ブログご紹介](https://discuss.circleci.com/t/circleci-circleci/38749)

<div class="topic-metadata">

**Author:** [@Masahiko](https://discuss.circleci.com/u/Masahiko)\
**Replies:** 0\
**Last updated:** [January 9, 2021, 7:05am UTC](https://discuss.circleci.com/t/circleci-circleci/38749 "2021-01-09T07:05:25Z")

</div>

「CircleCI使ってみた」「CircleCI、自分はこんな風に活用している」というブログ記事をたくさんの方にポストいただき、ありがとうございます！ ここでは、そんな記事の中で、データベースがらみのものを紹介させていただきます。主にCircleCI Japan Twitter(@CircleCIJapan)でご紹介させていただいたものからピックアップしています。 参考になった記事があれば、記事の著者の方に敬意を表して、記事に対して…

---

## [Configuring Mysql Server Settings on Secondary Convenience Images](https://discuss.circleci.com/t/configuring-mysql-server-settings-on-secondary-convenience-images/38870)

<div class="topic-metadata">

**Author:** [@JarmBlueOak](https://discuss.circleci.com/u/JarmBlueOak)\
**Replies:** 3\
**Last updated:** [January 22, 2021, 11:09pm UTC](https://discuss.circleci.com/t/configuring-mysql-server-settings-on-secondary-convenience-images/38870 "2021-01-22T23:09:07Z")

</div>

I have setup a workflow that uses circleci next-gen convenience images, primary is openjdk and secondary is mysql. Everything works perfectly and I can talk to the secondary image via 127.0.0.1 to do what I need via mysq…

---

## [Circleci/mysql:5.7 fails to download default-mysql-client](https://discuss.circleci.com/t/circleci-mysql-5-7-fails-to-download-default-mysql-client/37050)

<div class="topic-metadata">

**Author:** [@KostadinP](https://discuss.circleci.com/u/KostadinP)\
**Replies:** 3\
**Last updated:** [August 27, 2020, 2:50pm UTC](https://discuss.circleci.com/t/circleci-mysql-5-7-fails-to-download-default-mysql-client/37050 "2020-08-27T14:50:41Z")

</div>

The command which fails is sudo apt install default-mysql-client

---

## [Error when trying to connect MySQL with MariaDB driver (with hibernate)](https://discuss.circleci.com/t/error-when-trying-to-connect-mysql-with-mariadb-driver-with-hibernate/36503)

<div class="topic-metadata">

**Author:** [@gkorland](https://discuss.circleci.com/u/gkorland)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 10:36am UTC](https://discuss.circleci.com/t/error-when-trying-to-connect-mysql-with-mariadb-driver-with-hibernate/36503 "2020-06-30T10:36:30Z")

</div>

I followed the docs here - https://circleci.com/docs/2.0/postgres-config/#example-mysql-project But, I’m getting the following error which I don’t get when running localy: https://app.circleci.com/pipelines/github/Redi…

---

## [Changes to MySQL config used by docker container are not appearing in Circle CI Jobs](https://discuss.circleci.com/t/changes-to-mysql-config-used-by-docker-container-are-not-appearing-in-circle-ci-jobs/36181)

<div class="topic-metadata">

**Author:** [@b-hayes](https://discuss.circleci.com/u/b-hayes)\
**Replies:** 0\
**Last updated:** [June 2, 2020, 9:45am UTC](https://discuss.circleci.com/t/changes-to-mysql-config-used-by-docker-container-are-not-appearing-in-circle-ci-jobs/36181 "2020-06-02T09:45:46Z")

</div>

In local testing I make changes to our MySQL config file that is copied via the dockerfile: COPY custom.cnf /etc/mysql/conf.d/ If I rebuild the containers locally my config changes are applied and the new settings a vi…

---

## [Docker tmpfs support](https://discuss.circleci.com/t/docker-tmpfs-support/10416)

<div class="topic-metadata">

**Author:** [@zwass](https://discuss.circleci.com/u/zwass)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 4:57pm UTC](https://discuss.circleci.com/t/docker-tmpfs-support/10416 "2020-04-29T16:57:39Z")

</div>

We have tests that run about 100x quicker when connected to a tmpfs-backed MySQL. This is supported by Docker as of 1.10, but seems to cause errors in CircleCI. Is tmpfs unsupported? This command works properly on my l…

---

## [Environment configuration not working for Mysql 8 docker image](https://discuss.circleci.com/t/environment-configuration-not-working-for-mysql-8-docker-image/35226)

<div class="topic-metadata">

**Author:** [@rcapile](https://discuss.circleci.com/u/rcapile)\
**Replies:** 0\
**Last updated:** [April 1, 2020, 4:22pm UTC](https://discuss.circleci.com/t/environment-configuration-not-working-for-mysql-8-docker-image/35226 "2020-04-01T16:22:59Z")

</div>

I cannot connect to mysql using MySQL 8. When using 5.7 it works without any problem (config truncated) version: 2.1 commands: run-tests: steps: - checkout - run: name: Test connection …

---

## [Unable to connect to mysql - SQLSTATE\[HY000\] \[2002\] No such file or directory](https://discuss.circleci.com/t/unable-to-connect-to-mysql-sqlstate-hy000-2002-no-such-file-or-directory/33569)

<div class="topic-metadata">

**Author:** [@jwwisniewski](https://discuss.circleci.com/u/jwwisniewski)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 9:47pm UTC](https://discuss.circleci.com/t/unable-to-connect-to-mysql-sqlstate-hy000-2002-no-such-file-or-directory/33569 "2019-12-02T21:47:37Z")

</div>

Hello, I’m trying out CircleCI for the first time as a part of my pet-/playground-project with Symfony4 plus as a part of the project I’m also creating my own circleci primary docker image. I have a couple of basic uni…

---

## [Container circleci/mysql:5.7](https://discuss.circleci.com/t/container-circleci-mysql-5-7/32928)

<div class="topic-metadata">

**Author:** [@nikolapeskir](https://discuss.circleci.com/u/nikolapeskir)\
**Replies:** 3\
**Last updated:** [October 16, 2019, 2:23pm UTC](https://discuss.circleci.com/t/container-circleci-mysql-5-7/32928 "2019-10-16T14:23:58Z")

</div>

Does anyone have similar issue ?

---

## [MySql 5.6 Trusty no longer installs](https://discuss.circleci.com/t/mysql-5-6-trusty-no-longer-installs/31485)

<div class="topic-metadata">

**Author:** [@mathews](https://discuss.circleci.com/u/mathews)\
**Replies:** 3\
**Last updated:** [July 23, 2019, 5:14pm UTC](https://discuss.circleci.com/t/mysql-5-6-trusty-no-longer-installs/31485 "2019-07-23T17:14:35Z")

</div>

Hello, i add Oracle Mysql REPO then do install on a classic style VM image, during my build process. However today. This no longer works and i get : E: Unable to locate package mysql-community-client E: Unable to locat…

---

## [MySQL-python can't install with container circleci/python:2.7.16](https://discuss.circleci.com/t/mysql-python-cant-install-with-container-circleci-python-2-7-16/31406)

<div class="topic-metadata">

**Author:** [@jakekaplan](https://discuss.circleci.com/u/jakekaplan)\
**Replies:** 2\
**Last updated:** [July 18, 2019, 10:12pm UTC](https://discuss.circleci.com/t/mysql-python-cant-install-with-container-circleci-python-2-7-16/31406 "2019-07-18T22:12:42Z")

</div>

My build works with the following using docker container circleci/python:2.7.15 Build-agent version 1.0.12069-0bafdb01 (2019-07-05T21:14:34+0000) Docker Engine Version: 18.09.6 Kernel Version: Linux 3031adb5a498 4.15.0…

---

## [Circleci/mongo randomly fails](https://discuss.circleci.com/t/circleci-mongo-randomly-fails/30158)

<div class="topic-metadata">

**Author:** [@timsuchanek](https://discuss.circleci.com/u/timsuchanek)\
**Replies:** 9\
**Last updated:** [July 3, 2019, 2:29pm UTC](https://discuss.circleci.com/t/circleci-mongo-randomly-fails/30158 "2019-07-03T14:29:07Z")

</div>

We’re using circleci/mongo:3 in our .circleci/config.yml and for about 2 weeks it randomly fails some times to boot. The error: 2019-05-02T12:25:38.857+0000 E - \[main\] Error saving history file: FileOpenFailed: …

---

## [Problem waiting for MySQL Database](https://discuss.circleci.com/t/problem-waiting-for-mysql-database/30629)

<div class="topic-metadata">

**Author:** [@macintosh](https://discuss.circleci.com/u/macintosh)\
**Replies:** 1\
**Last updated:** [May 30, 2019, 7:35am UTC](https://discuss.circleci.com/t/problem-waiting-for-mysql-database/30629 "2019-05-30T07:35:13Z")

</div>

I am trying to setup a test for an API which includes a MySQL Database. version: 2.1 jobs: linux: docker: - image: circleci/buildpack-deps:stretch - image: swift:4.1 - image: circleci/mysql:5.7 …

---

## [Config CircleCI for mysql database](https://discuss.circleci.com/t/config-circleci-for-mysql-database/19954)

<div class="topic-metadata">

**Author:** [@ankitjain28may](https://discuss.circleci.com/u/ankitjain28may)\
**Replies:** 7\
**Last updated:** [May 22, 2019, 9:41pm UTC](https://discuss.circleci.com/t/config-circleci-for-mysql-database/19954 "2019-05-22T21:41:37Z")

</div>

I am unable to setup build for my laravel project with mysql db.

---

## [Cannot connect to MySQL image externally; Dockerize wait timeout occurs](https://discuss.circleci.com/t/cannot-connect-to-mysql-image-externally-dockerize-wait-timeout-occurs/30443)

<div class="topic-metadata">

**Author:** [@danmooney](https://discuss.circleci.com/u/danmooney)\
**Replies:** 2\
**Last updated:** [May 18, 2019, 6:09pm UTC](https://discuss.circleci.com/t/cannot-connect-to-mysql-image-externally-dockerize-wait-timeout-occurs/30443 "2019-05-18T18:09:19Z")

</div>

I’m unable to connect to a mysql database on another docker container. telnet 127.0.0.1 3306 gives “Unable to connect to remote host: Connection refused”. I was able to connect before I had to update from buildpack-dep…

---

## [Php artisan clear-compiled PDOException could not find driver](https://discuss.circleci.com/t/php-artisan-clear-compiled-pdoexception-could-not-find-driver/29496)

<div class="topic-metadata">

**Author:** [@djones8520](https://discuss.circleci.com/u/djones8520)\
**Replies:** 3\
**Last updated:** [May 7, 2019, 8:14pm UTC](https://discuss.circleci.com/t/php-artisan-clear-compiled-pdoexception-could-not-find-driver/29496 "2019-05-07T20:14:51Z")

</div>

My pull request tests are failing during my composer install command. It fails once it gets to php artisan clear-compiled, which is run once composer install completes. config.yml version: 2 jobs: build: docker: -…

---

## [111 connection refused during docker build](https://discuss.circleci.com/t/111-connection-refused-during-docker-build/29013)

<div class="topic-metadata">

**Author:** [@chasebrignac](https://discuss.circleci.com/u/chasebrignac)\
**Replies:** 2\
**Last updated:** [March 15, 2019, 5:08pm UTC](https://discuss.circleci.com/t/111-connection-refused-during-docker-build/29013 "2019-03-15T17:08:58Z")

</div>

Performing the following works every time: git clone https://github.com/\*\*\*/deliv (a private repo) cd deliv git checkout dockerize-platform docker pull deliv/platform:base docker-compose up --build Great, now all I wan…

---

## [ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)](https://discuss.circleci.com/t/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock-2/22488)

<div class="topic-metadata">

**Author:** [@YaroslavMolchan](https://discuss.circleci.com/u/YaroslavMolchan)\
**Replies:** 7\
**Last updated:** [August 21, 2018, 7:27pm UTC](https://discuss.circleci.com/t/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock-2/22488 "2018-08-21T19:27:09Z")

</div>

Last times I often get error when using MySQL via Docker Compose: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) read unix @-\>/var/run/docker.sock: read: conne…

---

## [Missing JDBC Driver](https://discuss.circleci.com/t/missing-jdbc-driver/22474)

<div class="topic-metadata">

**Author:** [@mwinteringham](https://discuss.circleci.com/u/mwinteringham)\
**Replies:** 2\
**Last updated:** [May 23, 2018, 4:20pm UTC](https://discuss.circleci.com/t/missing-jdbc-driver/22474 "2018-05-23T16:20:34Z")

</div>

Hello all, New to CircleCI but enjoying working with it so far. However, I have run into an issue with my Java API when it starts up for integration testing. During its initialisation, the API connects to a MySQL DB but…

---

## [Circleci/mysql: Authentication plugin 'caching\_sha2\_password' cannot be loaded](https://discuss.circleci.com/t/circleci-mysql-authentication-plugin-caching-sha2-password-cannot-be-loaded/21900)

<div class="topic-metadata">

**Author:** [@simena86](https://discuss.circleci.com/u/simena86)\
**Replies:** 1\
**Last updated:** [April 23, 2018, 11:22am UTC](https://discuss.circleci.com/t/circleci-mysql-authentication-plugin-caching-sha2-password-cannot-be-loaded/21900 "2018-04-23T11:22:45Z")

</div>

We’ve just recently got into trouble with all our tests because of an error when running mysql --host 127.0.0.1: ERROR 2059 (HY000): Authentication plugin 'caching\_sha2\_password' cannot be loaded: Error loading shared l…

[Next page](https://discuss.circleci.com/tag/mysql/117.md?match_all_tags=true&page=1&tags%5B%5D=mysql)
