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
Error connection to database: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) #743
Comments
Hi @kaykhan, |
config.cnf is within the directory im running |
maybe i misread what youre asking me to try? what is "Rea?" |
Hi @kaykhan, I know that the file is in the current directory, but can you try with the absolute file name anyways? Can you use quotes (") between de file name? |
I tried with quotes it did not work
Is this what you mean by specify the aboslute name? (sorry its late here)
|
@davidducos any ideas what might be happening here? |
I dont think there is anything wrong with it recogizing the .cnf file because you can see the warning message:
Its definatly reading the .cnf file because otherwise it would not know i have set I believe the issue might be to do with the host value Doing some testing, i found another way to trigger this error in myloader if i set the |
When using the command line to connect to mysql through localhost, the socket path will be obtained from the default configuration file below, Otherwise, if the socket path is not explicitly specified and the path is not found in these files, the hardcoded path will be used "/tmp/mysql.sock": When the IP is specified, the connection is made through the tcp/ip protocol instead of the socket. The two methods are different. |
@peng19832 Sorry, im confused what you are telling me to do? Just to clarify, i am not connecting to localhost and im still getting the error. |
@kaykhan The configuration file is read by mydumper and by the mysql api, please use the absolute file name to confirm that it is not your issue. |
You can see in my previous message i have tried that?
|
Try one more time without using ~, full absolute location. And you should also test it only using host, port, user and password,and remove the other options. |
Hi @kaykhan, |
We might be using https://docs.gtk.org/glib/func.canonicalize_filename.html to get the absolute filename for --defaults-file. It will be useful for MySQL API and to check if the file exists |
Hi, im having an issue with using the tool when i exec it with a config file
config.cnf
if i use it by passsing the params in the cli, it works
Can someone tell me what im doing wrong in my config file? My host is a url to aws rds if that makes a difference
mydumper --version
mydumper 0.12.3-3, built against MySQL 8.0.29
The text was updated successfully, but these errors were encountered: