Join the community today
Become a Member

Drupal Drupal Drush Error

Discussion in 'Blogs & CMS usage' started by nVidian, Mar 12, 2016.

  1. nVidian

    nVidian Member

    98
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    10:48 AM
    1.7.9
    5.5
    Hi, anyone use Drush 8.x (Drupal Shell Command) and got it working with Centminmod setup ?

    Code:
    # drush up --debug
    Phar detected. Proceeding to drush_main().Loading drushrc "/root/.drush/drushrc.php" into "home.drush" scope.  [bootstrap]
    [0.01 sec, 2.94 MB]
    Cache HIT cid: 8.0.5-commandfiles-0-7463d3232sa297163ab2be3712     [debug]
    [0.02 sec, 2.99 MB]
    Bootstrap to phase 0. [0.16 sec, 7.37 MB]                            [bootstrap]
    Bootstrap to phase 6. [0.16 sec, 7.37 MB]                            [bootstrap]
    Drush bootstrap phase : bootstrap_drupal_root() [0.17 sec, 7.73 MB]  [bootstrap]
    Initialized Drupal 7.42 root directory at                            [bootstrap]
    /home/nginx/domains/mydomain.com/public [0.17 sec, 7.73 MB]
    Find command files for phase 1 (max=6) [0.17 sec, 5.52 MB]               [debug]
    Cache HIT cid: 8.0.5-commandfiles-1-cas7463d3232sa297163ab2be3712     [debug]
    [0.17 sec, 5.52 MB]
    Drush bootstrap phase : bootstrap_drupal_site() [0.23 sec, 5.55 MB]  [bootstrap]
    Initialized Drupal site default at sites/default [0.23 sec, 5.55 MB] [bootstrap]
    Find command files for phase 2 (max=6) [0.23 sec, 5.55 MB]               [debug]
    Drush bootstrap phase : bootstrap_drupal_configuration() [0.23 sec,  [bootstrap]
    5.55 MB]
    Find command files for phase 3 (max=6) [0.23 sec, 5.56 MB]               [debug]
    sql-query: SELECT 1; [0.24 sec, 5.67 MB]                                [notice]
    Executing: mysql --defaults-extra-file=/tmp/drush_zuS5TW --database=mydb --host=127.0.0.1 --silent  < /tmp/drush_C8feD4
      [B]ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)[/B]
    I googling a lot and find no answer for this issue. I also dont know why Drush wants to connect using 'root' user as above "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"
    I have another server running DirectAdmin NGINX + PHP-FPM (Apacheless) and Drush 8.x has no problem there.


    Anyone could help me ? Thank you