Hi Guys, I just want a little help here. I setup apache2 on my ubuntu machine for testing and I get this error. I changed the parameters db.php in the development folder of the config and all but I still get this error. I have phpmyadmin setup and it is working. I also have mysqli php module installed since it is needed for myadmin to work.
I am a bit new to working my projects in an ubuntu environment. But since the db is working and php sees it via phpmyadmin, I am thinking it something in fuel. But the error message is not helping me determine the cause. Is there a way for me to determine what could be the cause?
Update: I forgot to add, I am using MariaDB 10.0.8. But on Windows and CentOS (VPS), it works just fine.
Update2: the application folder, I set the chmod to 777 since it needs to write in the log file and be able to use my IDE to edit the files. the chown is also changed to www-data:www-data as per default apache2 user/group.
You are sure your app runs in 'dev' mode (i.e. are you looking at the correct config file)? Not secretly a SetEnv somewhere? Can you add a die() to that db.php, to check if it's being loaded at all?
Yes. I try die() on the db.php file and it worked. I also did changed the the type from mysqli to mysql it gave a blank "Fuel\Core\Database_Exception [ Error ]:".
Harro is write, sometimes a plain php error tells a lot. You can try also to put die(mysqli_connect_error()); in connect.php on line 129, juste before throw new \Database_Exception($this->_connection->error, $this->_connection->errno);