-
-
Notifications
You must be signed in to change notification settings - Fork 540
-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
How to tell pgloader to use .my.cnf instead of exporting MYSQL_PWD variable #767
Comments
I am also interested if it will be possible to use variables in the options file so it could be used for different users in MySQL and PostgreSQL. |
Found this #555 issue and will try it today. |
I have managed to do this in an interesting way:
So for now I am missing messages in the output about the copy progress. Regards, |
Can you link to MySQL documentation about that |
Yes sure. This is documented in the https://dev.mysql.com/doc/refman/5.6/en/environment-variables.html page and Client Password security is described in https://dev.mysql.com/doc/refman/5.6/en/password-security-user.html So in general it is working in the way if you have
At the same time if you have multiple MySQL servers you can or use
and use I hope that this will help on implementation and avoiding password variable export. |
Just wondering if you had a chance to have a look. |
Not yet no, do you want to have a look at doing it yourself? pgloader already includes a lib that knows how to parse INI files, it should be a nice first patch! |
is there any progress on this ? |
Hi
I am looking to the possibility to use secure file for MySQL password instead of exporting variable.
I can't find it in documentation and also in https://pgloader.readthedocs.io/en/latest/ref/mysql.html#mysql-database-source-specification-from
I don't want to export MYSQL_PWD
Can I use .my.cnf file instead and even sections in it for clientID1 and clientID2 and just export MYSQL_GROUP_SUFFIX?
Regards,
Areg
The text was updated successfully, but these errors were encountered: