php - How to Add to MySQL Configuration on Travis CI When Not Sudo -


i trying figure out how change mysql configuration before travis ci test run. using "sudo:false" directive, think use containers...i'm not best devops person.

but when set sudo true, can't restart mysql after try add lines "/etc/mysql/my.cnf".

so,

  - cat "some/directory/my.cnf" | sudo tee -a /etc/mysql/my.cnf   - sudo /etc/init.d/mysql restart 

gives me: "start: job failed start", don't want use sudo. php config, can like:

  - echo "apc.shm_size=256m" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 

but can't see in home folder mysql.

i know about:

  - mysql -e "set global innodb_buffer_pool_size = 512m;" 

but things want set give me:

  error 1238 (hy000) @ line 1: variable 'innodb_buffer_pool_size' read variable 

so, i'm @ loss on how accomplish changing mysql configuration on travis ci, , every internet search , method i've tried has failed me.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -