By gonun13
Hi,
I navigate to the Drupal folder an run: drush up
And get this error Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to [error] run this command. The drush command ‘up’ could not be executed. [error] Drush was not able to start (bootstrap) the Drupal database. [error]
I’ve read somewhere that if cli/php.ini and fpm/php.ini are in different places, drush won’t work but I can’t see exactly why. Any help?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I figure the problem out.
Drush db connection is superseded by the .my.cnf located in the /root folder that allows the root user direct connection to mysql.
However since drush tries to connect to drupal@localhost that has a different password, it fails with Access denied for user ‘drupal’@‘localhost’.
Moving .my.cnf out of the way solves the problem.
It seems to me, better to add line
user=root
into the /root/.my.cnf file instead of renaming it. This will allow you to be able both update drupal and login to mysql cli without typing password.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.