[odb-users] Utilizing MySQL Login Paths
Tyler Lytle
tlytle123 at gmail.com
Wed May 28 14:23:17 EDT 2025
Hello ODB!
I am trying to utilize MySQL login path configurations. These are located
in the home directory of the current user in a hidden file named
.mylogin.cnf. It contains an encrypted password and a default
username/hostname. From the command-line, if I simply execute "mysql" and
it will automatically log me into MySQL without specifying a
username/password on the command-line and without a password prompt.
Can I utilize this in any way with the MySQL ODB database class? I tried to
use the constructor that takes strings and a "number of strings" argument
but that doesn't seem to work.
I would actually like to try to connect to MySQL without specifying
anything other than the database to use. However, it looks like ODB
explicitly uses the currently logged in username if no user is specified.
Any help is appreciated.
--
Tyler Lytle
E-Mail: tlytle123 at gmail.com
More information about the odb-users
mailing list