docker-phabricator icon indicating copy to clipboard operation
docker-phabricator copied to clipboard

Service 'database' failed to build: The command '/bin/sh -c bash /opt/mysql/setup.sh' returned a non-zero code: 1

Open yangboz opened this issue 7 years ago • 0 comments

Step 11/13 : RUN bash /opt/mysql/setup.sh ---> Running in 5dee9ed351fd init mysql admin user Installing MySQL system tables... 171019 5:31:17 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 171019 5:31:17 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 171019 5:31:17 [Note] /usr/sbin/mysqld (mysqld 5.5.57-0+deb8u1) starting as process 30 ...

Installation of system tables failed! Examine the logs in /var/lib/mysql for more information.

You can try to start the mysqld daemon with:

shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql to connect to the mysql database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section 'Problems running mysql_install_db', and the manual section that describes problems on your OS. Another information source are the MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before submitting a bug report at http://bugs.mysql.com/

ERROR: Service 'database' failed to build: The command '/bin/sh -c bash /opt/mysql/setup.sh' returned a non-zero code: 1

yangboz avatar Oct 19 '17 05:10 yangboz