Skip to content

fix mysql connect error in travis ci #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 19, 2019

Conversation

amyangfei
Copy link
Contributor

@amyangfei amyangfei commented Aug 16, 2019

CI on travis always meets the following error recently:

$ sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
The command "sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"" failed and exited with 1 during .

ref: https://travis-ci.community/t/cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock/3414/2

  • add service mysql to fix this error
  • as SSL/TLS is not enabled by default, we run sudo mysql_ssl_rsa_setup --uid=mysql to enable it
  • fix a data race in canal package

@siddontang
Copy link
Collaborator

oh, CI failed, seem we meet a data race problem.

/cc @GregoryIan

@siddontang
Copy link
Collaborator

can you fix it? @amyangfei

@amyangfei
Copy link
Contributor Author

have fixed the data race and CI
PTAL @siddontang @GregoryIan

@siddontang siddontang merged commit c884616 into go-mysql-org:master Aug 19, 2019
@amyangfei amyangfei deleted the fix-travis-ci branch August 19, 2019 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants