我的本地主機nginx上的Wordpress配置有問題。Wordpress localhost OSX安裝:建立數據庫連接時出錯
在wp-admin配置上我收到Error establishing a database connection
。
當我手動創建WP-Config中,MySQL的日誌我只有Aborted connection 12 to db: 'unconnected' user: 'dimmi' host: 'localhost' (Got an error reading communication packets)
這是我的調試日誌:
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /Users/patryk/Public/dimmi/dimmi_wordpress2/wp-includes/wp-db.php on line 1488
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Users/patryk/Public/dimmi/dimmi_wordpress2/wp-includes/wp-db.php on line 1518
Warning: mysql_connect(): No such file or directory in /Users/patryk/Public/dimmi/dimmi_wordpress2/wp-includes/wp-db.php on line 1518`
命令行登錄和簡單的PHP腳本工作完美,文件權限是777
我有OSX El Captain,使用自制軟件安裝mysql。我跑出了想法:/
所有的工作 – Patryk