ã¹ã¯ãªãã(ã¯ã©ã¤ã¢ã³ã)ãªã©ããMySQLã«æ¥ç¶ããã¨ã次ã®ãããªã¨ã©ã¼ãåºã¦ãã¼ã¿ãã¼ã¹ãµã¼ãã¼ã«æ¥ç¶ã§ããªãã¨ãã¯ã ã¯ã©ã¤ã¢ã³ããåç §ãã«è¡ãã½ã±ããã®ãã¹ãééã£ã¦ãããã¨ãèãããã¾ãã Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) PHPã§ãã®ã¨ã©ã¼ãåºãã¨ãã¯ããããphp.iniã®è¨å®ãMySQLã®è¨å®ãééã£ã¦ããã ä¾ç¤ºã®ã½ã±ãããã¹ã¯ããããéãã®ã§MySQLã®è¨å®ã«åããã¦ãã ããã php.iniãå¤æ´ããæ¹æ³ /etc/php.iniã®mysql.default_socketãç·¨éããã mysql.default_socket = /tmp/mysql.sock è¨å®ã®åæ ã«ã¯Apacheã®åèµ·åãå¿ è¦ã§ãã httpd.confãå¤æ´
{{#tags}}- {{label}}
{{/tags}}