Problems using drupal / console -


hie installed drupal console launcher described in documentation :

curl https://drupalconsole.com/installer -l -o drupal.phar mv drupal.phar /usr/local/bin/drupal chmod +x /usr/local/bin/drupal 

it works fine , 'drupal' command works.

after installed console in site folder :

composer.phar require drupal/console:~1.0 \ --prefer-dist \ --optimize-autoloader 

when run 'drupal list' command in site folder have message : sqlstate[hy000] [2002] no such file or directory

so edited 'host' in 'settings.php' file replacing 'localhost' '127.0.0.1'

in case, have sqlstate [hy000] [2002] connection refused error , site no longer works!

i tried installing drupal 8 composer have console. there have error sqlstate [hy000] [2002] connection refused

it's been week try in directions without success!

i'm on osx mamp server.

would have idea ?

je ne comprends pas comment résoudre ce problème. aidez-moi et merci beaucoup d'avance.

as still not work, looked again @ documentation. saw error sqlstate [hy000] [2002] connection refused necessary create symlink pointing /tmp/mysql.sock

i did , edited php.ini file

pdo_mysql.default_socket= /tmp/mysql.sock mysql.default_socket = /tmp/mysql.sock mysqli.default_socket = /tmp/mysql.sock restarted server , opened , run drupalconsole again.

unfortunately not work , sqlstate [hy000] [2002] connection refused

thank helping me because nightmare!


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -