heroku-mysql-cli

by stebogit

GitHub Readme.md

heroku-mysql-cli

Build Status

This is a Heroku buildpack that installs and adds just the mysql binary (v5.7) from the mysql-client-core deb package, which will be available in $PATH on your Dyno.

Note: if you are interested in mysqldump binary check out https://github.com/Everlane/heroku-buildpack-mysql

Version

  • MySQL: 5.7

Note: tested compatiblity with heroku-18 stack, it might have issues with different versions

Usage

  • via heroku cli:

    $ heroku buildpacks:add https://github.com/stebogit/heroku-mysql-cli
    $ git push heroku master
    
  • or from the dashboard of your project

    Screen Shot 2020-09-08 at 1 46 08 PM


-----> MySQL Client app detected
-----> Downloading MySQL Client package
       Looking for clients at: http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/
       available clients:
       mysql-client-core-5.7_5.7.31-0ubuntu0.18.04.1_amd64.deb
       Selecting: mysql-client-core-5.7_5.7.31-0ubuntu0.18.04.1_amd64.deb
-----> Installing MySQL Client
       dpkg -x /tmp/codon/tmp/cache/mysql-client-core.deb /tmp/build_5b3d30d0_/tmp/mysql-client-core
-----> Cleaning up

Credits

I basically registered thoughtbot's buildpackage to Heroku and updated the docs