Config.php :
define("DB_HOST", "127.0.0.1:1433");
define("DB_USER", "****");
define("DB_PASSWORD", "****");
define("DB_DATABASE", "name");
for some odd reason i keep on getting error:
mysqli::mysqli() [mysqli.mysqli]: (HY000/2005): Unknown MySQL server host '127.0.0.1:1433' (3) in filelocation/file.php on line X
line X = $this->con = new mysqli(DB_HOST, DB_USER, DB_PASSWORD,DB_DATABASE);
the strange thing is that i also have an old mysql api running,
mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
which connects to the db without any problems whatsoever. note, that my MySQLi api was working and operational. This issue has only come to my notice since a week or two ago.
Question
Do I need to update my apache to run mySQLi again?
phpinfo()to see if you have mysqli?DB_HOST", "127.0.0.1without the port number?localhostinstead of the ip and the port number