xampp安裝drupal 7.1時(shí),提示出下(xià)錯(cεuò)誤:
* Warning: PDO::__construct(): [20© εφ02] Invalid argument (trying to λ±£connect via unix://) in DatabaseConn↓↓✘₽ection->__construct() (line 286 of¥§©ε /opt/lampp/htdocs/dru§♠pal/drupal7/includes/da<↔α•tabase/database.inc).
*
In order for Drupal to work, and to co✔δ €ntinue with the installation pro$αcess, you must resolve☆ε> all issues reported below. For mor≈₩↑βe help with configuring yo≠↕ur database server, see the insta♣δ↓llation handbook. If you are uns≈γ"≥ure what any of this m<≤<eans you should probably cont ←&act your hosting provider.
Failed to connect to your MySQL dataε base server. MySQL reports the foll×∏owing message: SQLSTATE[HY000] [20"∞≥02] Invalid argument.
o Are you sure you have the correct >×↔username and password?
o Are you sure that λ♣₹you have typed the cor✔↔'rect database hostname?
o Are you sure that the data♦♦base server is running?
For more help, see the installation h"¶$andbook. If you are un♦≠sure what these terms mean you shoul✘£d probably contact your hosting pr∏£σ>ovider.
無
修改php.ini
找到(dào)pdo_mysql.default_socket=
修改成如(rú)下(xià)即可(kě)。♥✔
pdo_mysql.default_sockπ∑∏et=/opt/lampp/var/mysql/mysql.s£Ωock
無