Skip to content

sqitch deploy not working if .my.cnf password is declared with single quotes #840

@Shto1337

Description

@Shto1337

Just started with sqitch for mysql.

Installed cpan MySQL::Config according to #261
-> MySQL::Config is up to date (1.04).

Setup is an Ubuntu 22 trying to connect to mysql instance with version 8.0.36-28 Percona Server (GPL), Release '28', Revision '47601f19'

Given the following ~/.my.cnf file, deploy will not work if the password is quoted in single quotes:

$ cat ~/.my.cnf
[mysql]
user=me_user
host=my.awesome.host
password='MyPassword1!'

[client]
user=me_user
host=my.awesome.host
password='MyPassword1!'

$ sqitch deploy 

Access denied for user 'me_user'@'10.248.99.99' (using password: YES)

Although, this is perfectly valid with the standalone mysql client and defaults file

$ mysql --defaults-file=~/.my.cnf
mysql: Warning: Charset id '33' csname 'utf8' trying to replace existing csname 'utf8mb3'
mysql: Warning: Charset id '83' csname 'utf8' trying to replace existing csname 'utf8mb3'
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 147
Server version: 8.0.36-28 Percona Server (GPL), Release '28', Revision '47601f19'$

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions