Database Connection Configuration

Seme Framework has the ability to open direct connections to database applications such as MySQL or Maria DB through the MySQLi extension. Database connection settings are in app/config/development.php in the $db array, which consists of 7 setting keys.

$db['host']

The hostname or IP Address value of database server connection.

$db['user']

The user value of database server connection.

$db['pass']

The password value of database server connection.

$db['name']

The name of database using by database server connection.

$db['port']

The connection port used by database server connection. Default value is $db['port'] = '3306';.

$db['charset']

The character set or encoding used for database connections. This setting is very important, especially for multibyte data storage, such as storing Arabic or Japanese script. The contents of this key array can be latin1 or utf8mb4 according to the needs of the character settings.

$db['engine']

The framework database engine. In version 4 only MySQLi is available, so the default value is $db['engine'] = 'mysqli';.