kitematic icon indicating copy to clipboard operation
kitematic copied to clipboard

Unable to authenticate MySQL via kitematic

Open bythckr opened this issue 9 years ago • 5 comments

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

  1. 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.

bythckr avatar Mar 12 '17 00:03 bythckr

Please read the MySQL requirement documentation: https://hub.docker.com/_/mysql/

FrenchBen avatar Mar 17 '17 22:03 FrenchBen

I havent found anything on that documentation that addresses the issue with kitematic. What should I do?

dhulke avatar Feb 18 '18 03:02 dhulke

@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 ?

collin5 avatar Feb 18 '18 13:02 collin5

I eventually found out that I had to set that on kitematic and it worked

dhulke avatar Feb 18 '18 14:02 dhulke

@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 :
  1. MYSQL_ROOT_PASSWORD as a key and what you want as a value
  2. MYSQL_DATABASE as a key and what you want as a value
  3. MYSQL_USER as a key and what you want as a value
  4. 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.

ZeFifi avatar Apr 05 '18 08:04 ZeFifi