I've got my own DB.php and it was working before I changed the MySQL Port to something else other than 3306 which is default. It fails to connect now; I've configured the DB.php after port change like below :
class DB {
// server
private $host = "192.168.1.15";
private $uname = "user";
private $pw = "iamuser";
private $dbname = "matlab";
private $con = null;
private $port = "669";
public function __construct() {
$this->con = mysql_connect($this->host,$this->port, $this->uname, $this->pw);
if (!$this->con) {
$this->db_error("Cannot connect to DBMS");
}
mysql_query("SET NAMES 'latin5'", $this->con);
mysql_query("SET CHARACTER SET 'latin5'", $this->con);
mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'", $this->con);
mysql_select_db($this->dbname, $this->con) or db_error("Can not connect to Database");
}
Can anyone tell me how I can make it work with the port number 669 again? Thanks.