Question
Can't Install MySQL on Dokku
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.
×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.
×
cd /var/lib/dokku/plugins
git clone https://github.com/k2nr/dokku-mysql-plugin.git mysql
chmod +x mysql/install mysql/commands
dokku plugins-install
apt-get update
apt-get upgrade lxc-docker
Missing the mysql
at the end of the second line of your first code block (so that git can load the repo into the mysql folder):
git clone https://github.com/k2nr/dokku-mysql-plugin.git mysql
When running these commands and attempting to create a new database with:
dokku mysql:create foo
I get this message back:
mysqladmin: Unknown command: 'null'
What’s going on here? Is anything being created?
I’m getting the same error as jdrake30. It prints out “Unknown command: ‘null’”, but the database seems to have been created (I can list it with mysql:info). I can link it as well.
However, it’s Host field is empty. When trying to use it within a Sails.js app, we get connection refused errors. Replacing Host in our config file with 127.0.0.1 (instead of having it blank) doesn’t seem to help. Any clues?