This commit is contained in:
Laurent Destailleur 2023-06-24 03:26:27 +02:00
parent b5529525e3
commit 057289efb1

View File

@ -248,14 +248,14 @@ before_script:
mysql -u root -ppassword -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;'
echo "MySQL grant and flush"
mysql -u root -ppassword -e 'GRANT ALL PRIVILEGES ON *.* TO root@127.0.0.1; FLUSH PRIVILEGES;'
sudo cat /etc/mysql/mysql.conf.d/mysql.cnf
sudo mysqladmin variables | grep default_authentication_plugin
sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf
sudo sed -i -e 's/default-authentication-plugin=.*/default-authentication-plugin=mysql_native_password/g' /etc/mysql/mysql.conf.d/mysqld.cnf
sudo cat /etc/mysql/mysql.cnf
sudo chmod -R a+rwx /etc/mysql/mysql.conf.d/mysqld.cnf
echo "default-authentication-plugin=mysql_native_password" >> /etc/mysql/mysql.conf.d/mysqld.cnf
sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf
sudo /etc/init.d/mysql restart
sudo mysqladmin variables | grep default_authentication_plugin
echo "MySQL list current users"
mysql -u root -e 'use mysql; select * from user;'
mysql -u root -ppassword -e 'use mysql; select * from user;'
set -e
echo "MySQL load with pass"
mysql -u root -ppassword -h 127.0.0.1 -D travis < dev/initdemo/mysqldump_dolibarr_3.5.0.sql