我的.circleci/config.yml
具有下一个结构:
defaults: &defaults
docker:
- image: circleci/node:lts-stretch
- image: circleci/php:7.1-apache-node-browsers
- image: circleci/mysql:8.0.4
environment:
MYSQL_HOST: 127.0.0.1
MYSQL_DB: rpgjs_test
MYSQL_USER: root
MYSQL_PASSWORD: rpgjs_test_password
working_directory: ~/repo
但是图像创建不断失败,并引发下一个错误:
PHP
$ _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Build was canceled
Mysql
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for
'root'@'%'
我在做什么错了?
答案 0 :(得分:0)
root
用户默认存在,无法重新创建。
尝试设置MYSQL_ROOT_PASSWORD
并删除MYSQL_PASSWORD
和MYSQL_USER