Skip to content
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

Problem connecting to db #6

Closed
rhunton opened this issue Dec 16, 2019 · 1 comment
Closed

Problem connecting to db #6

rhunton opened this issue Dec 16, 2019 · 1 comment

Comments

@rhunton
Copy link

rhunton commented Dec 16, 2019

Hi - Having some trouble launching the binlog reader.

Proxysql is on 10.10.0.12

DB is on 10.10.0.11

Installed proxysql_binlog_reader on 10.10.0.11 and launched with:
./proxysql_binlog_reader -hlocalhost -u root -p REDACTED -P 3306 -l 999 -L /var/log/binlog_reader.log

Got the following error:
Error in initializing slave: Could not mysql_real_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) : 2002

Our server is set up with the socket in /mysql/data but I can't find a config option to set that up for binlog reader.

Thanks.

@rhunton
Copy link
Author

rhunton commented Jan 2, 2020

Resolved by adding a symlink to /mysql/data/mysql.sock

@rhunton rhunton closed this as completed Jan 2, 2020
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

No branches or pull requests

1 participant