Circle CI MySQL在bash中不可用

时间:2017-11-23 16:21:50

标签: mysql linux continuous-integration circleci

使用Circle CI我执行以下操作来安装MySQL:

      - image: mysql:5.6
        environment:
         - MYSQL_ROOT_PASSWORD=ubuntu
         - MYSQL_USER=user
         - MYSQL_PASSWORD=password

我安装成功了:

MySQL init process done. Ready for start up. ......mysqld: ready for 
connections.
Version: '5.6.38'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  
MySQL Community Server (GPL)

问题是如果我尝试使用mysql这样的东西:

mysql --version

我明白了:

mysql: command not found

0 个答案:

没有答案