Skip to content

Password from conf file never read #218

@jpietarinen

Description

@jpietarinen

I have a MySQL database (not a MariaDB).

My configuration file is:

[Client]
user=root
password="qwerty123"
database=testdb
host=127.1

When connecting with DBInterface.connect(MySQL.Connection, "", "", ""; option_file="/home/me/.my.cnf", option_group="Client") I get the following error: LoadError: (1045): Access denied for user 'root'@'localhost' (using password: NO).

With command line mysql --table -e "SELECT * FROM Blahblah ORDER BY id ASC;"works as expected.

Also it seems to be that contrary to mysql command line utility, MySQL.jl reads configuration file case-sensitively, since I must specify option_group parameter for the Client group. Is it a bug or feature? Without that parameter I get the following error: LoadError: (2002): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2), which is worse than a normal access denied error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions