###Codeigniterにてデータベースエラーが発生してしまいます
###エラーメッセージ
A PHP Error was encountered Severity: Warning Message: mysqli::real_connect(): (HY000/2002): No such file or directory Filename: mysqli/mysqli_driver.php Line Number: 202 Backtrace: File: "(コントローラ)" Line: 12 Function: __construct File: "(コントローラ)" Line: 10 Function: __construct File: "(index.php)" Line: 322 Function: require_once
###/config/database.php
php
1$active_group = 'default'; 2$query_builder = TRUE; 3$db['default'] = array( 4 'dsn' => '', 5 'hostname' => 'localhost', 6 'username' => 'root', 7 'password' => '(パスワード)', 8 'database' => '(データベース名)', 9 'dbdriver' => 'mysqli', 10 'dbprefix' => '', 11 'pconnect' => FALSE, 12 'db_debug' => (ENVIRONMENT !== 'production'), 13 'cache_on' => FALSE, 14 'cachedir' => '', 15 'char_set' => 'utf8', 16 'dbcollat' => 'utf8_general_ci', 17 'swap_pre' => '', 18 'encrypt' => FALSE, 19 'compress' => FALSE, 20 'stricton' => FALSE, 21 'failover' => array(), 22 'save_queries' => TRUE 23);
###試したこと
いろいろ調べているのですが「MySQLのソケット」にパスが通っていないとい書かれてある記事を見て「PHP.ini」にソケットのパスを追記しましたが、治りませんでした。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/20 02:42