Welcome Guest, Not a member yet? Register   Sign In
CI 1.7: mysqli error when using empty port
#1

[eluser]sinzy[/eluser]
Hi, there, just upgraded to CI 1.7, however my app reports "Unable to connect to your database server using the provided settings."

After some investigation, I think it is because of the new "port" support for mysql/mysqli. (My app uses mysqli).

By default, in DB_driver.php, $port = ''. And in mysqli_driver.php, the db_connect() function just use this empty port, so there is an error. If I remove the $this->port in this function, my app works again.

But in mysql_driver.php there is a check for port, so no problem.

It is a bug I think. Smile


Messages In This Thread
CI 1.7: mysqli error when using empty port - by El Forum - 10-24-2008, 03:38 AM
CI 1.7: mysqli error when using empty port - by El Forum - 10-24-2008, 08:28 AM
CI 1.7: mysqli error when using empty port - by El Forum - 10-24-2008, 09:01 AM
CI 1.7: mysqli error when using empty port - by El Forum - 10-24-2008, 09:07 AM
CI 1.7: mysqli error when using empty port - by El Forum - 11-26-2008, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB