#1 2014-12-12 10:47:34

mytarzan
Member
Registered: 2014-12-12
Posts: 5

why db driver is set to the mysqli ??

Hello,
apache 2, php 5.3, mysql 5.1.39

and ionizeCMS 1.0.7..

When I first setup the CMS, the process is stopped after the database configuration setting.


I printed the some variables..in the installer files.
and I found that the process is stopped '    function _save_database_settings() in the Installer.php'

..
$fields = array('db_driver', 'db_hostname', 'db_name', 'db_username');
..

If I check the $fields , the 'db_driver' is mysqli

but my server is only installed mysql , not mysqli but mysql.

so from there, the process is stopped...



Why does the CMS recognize the db driver as 'mysqli', even if my server don't have the mysqli ???

Should I install the mysqli module in addition to the mysql ??...

Is there any way to succeed with the mysql driver(not mysqli) ????

Offline

#2 2014-12-12 11:02:17

CodeStepper
Member
From: Poland
Registered: 2014-06-30
Posts: 53
Website

Re: why db driver is set to the mysqli ??

MySQLi is not a database - it's extension, like normal MySQL for PHP.
Difference between MySQLi and MySQL is that MySQLi is objective. Also MySQL extension is deprecated from PHP 5.5.0
http://php.net/manual/en/function.mysql-connect.php
So, if you're using XAMPP, install newer version, if not, just add or reinstall MySQLi extension.

PS: You can change to "mysql" in database connection settings. CodeIgniter has support for mysql and mysqli, so it's not a problem I think...

Last edited by CodeStepper (2014-12-12 11:05:54)

Offline

#3 2014-12-13 09:12:59

mytarzan
Member
Registered: 2014-12-12
Posts: 5

Re: why db driver is set to the mysqli ??

Solved, after I changed mysqli to mysql , Thanks

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations