Unable to authenticate MySQL via kitematic
Expected behavior
There should be a box where I can input parameters to run MySQL
Actual behavior
Container log: error: database is uninitialized and password option is not specified You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
Information about the Issue
Steps to reproduce the behavior
- Installed mysql via kitematic.
I am not sure if this issue is already being worked on based on what I read in the the closed issues.
Please read the MySQL requirement documentation: https://hub.docker.com/_/mysql/
I havent found anything on that documentation that addresses the issue with kitematic. What should I do?
@dhulke @bythckr Did you set any of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD or MYSQL_RANDOM_ROOT_PASSWORD environment variables for the container and still getting this error ?
I eventually found out that I had to set that on kitematic and it worked
@dhulke Could you share the solution with us please :) ?
EDIT: I found the solution. For those who wonder:
- open the mysql container settings
- under the "General" tab click on the + icon and add :
- MYSQL_ROOT_PASSWORD as a key and what you want as a value
- MYSQL_DATABASE as a key and what you want as a value
- MYSQL_USER as a key and what you want as a value
- MYSQL_PASSWORD as a key and what you want as a value
Then, save and go back to your Wordpress installation page and fill the fields with the data you set. Instead of localhost, copy/paste the "Access URL" provided in the "Home" tab (next to "Settings") when you're on your mysql container in Kitematic.