Skip to content

Conversation

@dextromethorphanum
Copy link

Hi. I have a problem when using function mysql_connect_file and file where i store data to connect to database.
The contents of this file:

hostname = localhost
username = root
database = some_database
password = hz@WTNFHIxI7~{VAMx3*}raAs8#~DFbE

The plugin searches the file for symbols '#' or ';' in any position of the line, but according to the INI-file parsing rules (https://en.wikipedia.org/wiki/INI_file#Comments), a comment is a line in which the comment character is at the beginning of the line. Due to this plugin error, it is impossible to use the mysql_connect_file function if the password contains one of these special characters ('#' or ';'), and I am forced to use mysql_connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant