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?
i rewrite mysql docker with mine and it works like default
Hi,
I tried to use your docker image in my bitbucket pipeline configuration.
It looks like the setup it's working, mysql server is up. But as soon as application tries to connect, I get the following error:
An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or dir
ectory
Any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can confirm @Julius Šmatavičiuscustome mysql 8 container is working for me. Thanks!
Be good if Atlassian had a native fix for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, it works
i use such config
definitions:
services:
mysql:
image: bondas83/mysql-native-password
environment:
MYSQL_DATABASE: 'testing'
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_USER: 'homestead'
MYSQL_PASSWORD: 'secret'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Julius, after hours of searching many forums, yours is the only one working for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This should be fixed so that we don't have to use a custom container. I'm very surprised more people aren't complaining about this. Is no one using MySQL v8?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.