This commit is contained in:
Laurent Destailleur 2020-01-30 02:52:20 +01:00
parent dfad88fe41
commit 5afcc0ba46

View File

@ -195,8 +195,8 @@ before_script:
echo "Setting up database"
if [ "$DB" = 'mysql' ] || [ "$DB" = 'mariadb' ] || [ "$DB" = 'postgresql' ]; then
echo "MySQL"
mysql -u root -e 'DROP DATABASE IF EXISTS travis;'
mysql -u root -p'' -e 'CREATE DATABASE IF NOT EXISTS travis;'
mysql -h 127.0.0.1 -u root -e 'DROP DATABASE IF EXISTS travis;'
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS travis;'
mysql -u travis -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;'
mysql -e 'FLUSH PRIVILEGES;'
mysql -D travis < dev/initdemo/mysqldump_dolibarr_3.5.0.sql