Skip to content

Commit 199d857

Browse files
author
Johan Pas
committed
Remove brackets from IPv6 address in mysql cfgfile
stack.sh creates a user-specific configuration file ~/.my.cnf for mysql. If devstack is installed with SERVICE_IP_VERSION=6 option in local.conf, the IPv6 host address was stored in the ~/.my.cnf file with square brackets. However mysql does not use bracketing for IPv6 addresses, resulting in 'Unknown MySQL server host' error when 'mysql' command is run. With this patch IPv6 host address is written to ~/.my.cnf without brackets. Closes-Bug: #1516776 Change-Id: I27a7be8c75cf6b09b4a75dc4c9d09cd36bc5ac81
1 parent 8f07ef8 commit 199d857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/databases/mysql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ MYSQL_PRESEED
143143
[client]
144144
user=$DATABASE_USER
145145
password=$DATABASE_PASSWORD
146-
host=$DATABASE_HOST
146+
host=$MYSQL_HOST
147147
EOF
148148
chmod 0600 $HOME/.my.cnf
149149
fi

0 commit comments

Comments
 (0)