Toshimaru's Blog

Installing MySQL 5.7 on CircleCI


Current best approach is changing CircleCI Build Environment to the latest version which is Ubuntu 14.04.

Ubuntu 14.04 (Trusty) - CircleCI

This build image has MySQL 5.7.x by default.


Original script currently doesn’t work because it refers to mysql-5.7-dmr1 which is outdated.

Please use my forked script.

The raw source is:

CircleCI doesn’t support MySQL 5.7 by default.

kimh, CircleCI employee, created a script to install MySQL 5.7 on CircleCI.

To use this script, add below configuration to your circle.yml:

    - curl -sSL | sh

The output on CircleCI is:

* MySQL Community Server 5.7.14 is started
Setting up mysql-server (5.7.14-1ubuntu12.04) ...
Setting up libmysqlclient20 (5.7.14-1ubuntu12.04) ...
Setting up libmysqlclient-dev (5.7.14-1ubuntu12.04) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
+ echo Checking installed version.....
Checking installed version.....
+ mysql -D mysql -e SELECT version()
+ echo Done!!

Then, you can use MySQL 5.7 on CircleCI container.

See also

  1. DMR means development milestone release. ref. MySQL :: MySQL Development Cycle :: 6 Development Milestone Releases 

Load more