Report this

What is the reason for this report?

Can't Install MySQL on Dokku

Posted on May 13, 2014

I’ve set up the droplet and when I run dokku mysql:create www I get:

mkdir: cannot create directory ‘/home/git’: Permission denied

I can’t figure out how to get past this.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m also getting the Unknown command: ‘null’ error even after upgrading docker and cloning the forked mysql plugin. I also tried the mariadb plugin, but that didn’t work too well either. So far it seems like everything is changing too fast for all the plugins to keep up :(

Hi Ben, <br> <br>It looks like this is a bug in the MySql Dokku plugin, it hasn’t been updated for recent versions of Dokku: <br> <br>https://github.com/hughfletcher/dokku-mysql-plugin/pull/9 <br> <br>You can use this fork until it gets merged into master: <br> <br><pre> <br>cd /var/lib/dokku/plugins <br>git clone https://github.com/k2nr/dokku-mysql-plugin.git mysql <br>chmod +x mysql/install mysql/commands <br>dokku plugins-install <br></pre> <br> <br>You also need to make sure you have the most recent version of docker: <br> <br><pre> <br>apt-get update <br>apt-get upgrade lxc-docker <br></pre>

Running into the same issue. I followed your directions above but I’m still getting a permission denied message.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.