I have to log into multiple MYSQL DB's on different hosts via mysql cli. is it possible to save these logins so I don't have to trackdown/remember the credentials?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
Based on a discussion at http://bugs.mysql.com/bug.php?id=17627 I use the following method to automatically log into different mysql servers: File /path/to/my-host1-cnf.txt
File /path/to/my-host2-cnf.txt
Connect to host1, database1 with saved credentials above:
Connect to host2, database2 with saved credentials above:
Hope this helps :-) |
|||
|
|