I'm running Sphinx searchd server on ports 9312 and 9306 (mysql41) and I connect to the server with the following code to use SphinxQL:
$mysqli = new mysqli($hostname, $username, $password, $database, "9306");
When I send a SQL statement, it gives me results and everything is working fine (apparently), but if I change the port from 9306 to any other number (for example 1111), it is still giving me results, so I have no way to check if I'm really connecting to the searchd daemon at port 9306 or I'm still connecting to the mysql server at port 3306.
Any ideas?
Thanks for advance.
$mysqli->connect_errnoand$mysqli->connect_errorto see if it just seems like you are getting results? - doublesharp