dancryer/PHPCI

Unknown database

frimdo opened this issue · 0 comments

Expected behaviour

When installing PHPCI by the wiki, the phpci:install command should create a new database if there is not one passed as an argument.

Actual behaviour

running

./console phpci:install -n -vvv\
 --url=$PHPCI_URL\
 --db-host=$PHPCI_DB_HOST\
 --db-name=$PHPCI_DB_NAME\
 --db-user=$PHPCI_DB_USER\
 --db-pass=$PHPCI_DB_PASSWORD\
 --admin-name=$PHPCI_ADMIN_LOGIN\
 --admin-pass=$PHPCI_ADMIN_PASSWORD\
 --admin-mail=$PHPCI_ADMIN_MAIL\
 --queue-server=$PHPCI_QUEUE_SERVER\
 --queue-name=$PHPCI_QUEUE_NAME

results in

PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
PHPCI could not connect to MySQL with the details provided. Please try again.
SQLSTATE[HY000] [1049] Unknown database 'PHPCI'
...

Steps to reproduce

Pass name of non existing database as db-name.

Environment info

Operating System: Debian 8.8
PHP Version: 7.1.6
MySQL Version: MySQL galera 5.6