国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal问题] xampp下安装drupal7 [2002] Invalid argument (trying to connect via unix:错误

[复制链接]
发表于 11-29-2011 06:13 | 显示全部楼层 |阅读模式
  • Warning: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://) in DatabaseConnection->__construct() (line 300of/opt/lampp/htdocs//includes/database/database.inc).
  • In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the installation handbook. If you are unsure what any of this means you should probably contact your hosting provider.

    Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Invalid argument.

    • Is the database server running?
    • Does the database exist, and have you entered the correct database name?
    • Have you entered the correct username and password?
    • Have you entered the correct database hostname?

在使用xampp下面安装最新的drupal7的时候出现问题。MYSQL不能正常安装。

修改php.ini:

pdo_mysql.default_socket =

修改为
pdo_mysql.default_socket=”/opt/lampp/var/mysql/mysql.sock”

重启APACHE后正常

|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 2-19-2025 14:09 , Processed in 0.363910 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表