I have problem with pipelines and mysql 8
I have mysql service in my pipelines:
definitions:
services:
mysql:
image: mysql:8.0.4 #loselesslive/mysql8, jasonmu/mysql-native-password
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci','--default-authentication-plugin=mysql_native_password', 'sed -i '/^\[mysqld\]$/a\default-authentication-plugin=mysql_native_password' /etc/my.cnf']
restart: always
ports:
- "3306:3306"
environment:
TZ: Europe/Vilnius
MYSQL_DEFAULT_AUTH: 'mysql_native_password'
MYSQL_DATABASE: 'homestead'
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_USER: 'homestead'
MYSQL_PASSWORD: 'secret'
when i run pipeline i got error "Connect Error: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client" like in
https://stackoverflow.com/questions/52364415/the-server-requested-authentication-method-unknown-to-the-client-php
https://github.com/laradock/laradock/issues/1390
https://github.com/laradock/laradock/issues/1392
if i could run script to run sql and command line i can fix it but how?