-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drush site-install creates wrong tmp file with db connection details #2888
Comments
Edit: Strange, even if I create a file with wrong credentials and no linebreaks (like the line above), it works on the shell. Here is the complete error message, maybe it is unrelated to the configuration above.
|
So clearly the db credentials are not correct. |
My hoster provides access (to the database) via an ssh-tunnel, so 127.0.0.1 works, while localhost does not. Nothing wrong with drush. The generation of a |
I am trying to install drupal with Drush Version : 8.1.12.
Drush tries to execute the following query, based on the parameters I give it per --db-url:
mysql --defaults-extra-file=/tmp/drush_wyvP09 --database=db_drupal --host=localhost --port=3307 --silent
This fails, due to incorrect settings in the tmp file. If I run this from my shell, it:
--default-extra-file
:mysql --database=db_drupal --host=localhost --port=3307 --silent
mysql --defaults-extra-file=~/empty --database=db_drupal --host=localhost --port=3307 --silent
mysql --defaults-extra-file=~/.my.mariadb.cnf --database=db_drupal --host=localhost --port=3307 --silent
So I guess the non-standard port number is somehow not included?! This assumption is confirmed by a cat-loop for drush tmp files:
[client] user="myusername" password="mypassword"#This file was written by Drush's Sqlmysql.php.
The non-standard port is a requirement from my hoster, who supports a more recent version of mysql along with an older version that runs on the standard port.
The text was updated successfully, but these errors were encountered: