小编Kam*_*mil的帖子

travis mysql数据库创建用户错误

我想为我的spring-boot项目设置travis,我使用用户makler/makler来访问数据库.运行travis时出现错误说:

$ mysql -u root -e 'CREATE DATABASE stockmarket;'

$ mysql -u root -e 'CREATE USER 'makler'@'localhost' IDENTIFIED BY 'makler';'
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'makler' at line 1


The command "mysql -u root -e 'CREATE USER 'makler'@'localhost' IDENTIFIED BY 'makler';'" failed and exited with 1 during .

Your build has been stopped.
Run Code Online (Sandbox Code Playgroud)

我的travis.yml文件看起来像: …

mysql continuous-integration travis-ci

5
推荐指数
1
解决办法
1622
查看次数

标签 统计

continuous-integration ×1

mysql ×1

travis-ci ×1