Welcome Guest, Not a member yet? Register   Sign In
Mysql drivers
#1

[eluser]Unknown[/eluser]
Hello! I'm new to CodeIgniter, I'm trying to use a MySql database in Xampp (Apache) for Windows, but the only driver I have in my CI installation is 'mysql'; the database in Xampp uses 'myisam' or 'innodb'. It gives me an error, asking for the driver. I need to download a specific driver? Or is a mistake in my code?
Thanks,
Guillermo.
#2

[eluser]keithics[/eluser]
MySQL is a relational database management system.
MyISAM/InnoDB - storage engine for the MySQL .

There is an error in your database config file.


system/application/config/database.php

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = ""; //default for xampp
$db['default']['database'] = "database_name_here";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";




Theme © iAndrew 2016 - Forum software by © MyBB