WSN Gallery
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
Specifying MySQL Port and Socket
Specifying MySQL Port and Socket
By Paul

Although extremely unlikely, it's possible you might run into a host where you can't connect to the database with just the host name, username, password and database name. This may be because it requires a special socket. Open config.php and change
$adb = new db($dbhost, $dbuser, $dbpass, $databasename);
to
$adb = new db($dbhost, $dbuser, $dbpass, $databasename, 3306, '/tmp/mysql5.sock');
where 3306 is your port name and /tmp/mysql5.sock is the socket (these values are specific to your host).

Rating:


5/5 based on 1 vote. The median rating is 5.

Submitted: 12/05/07

Description: What to do on an unusual host which doesn't handle port and socket properly automatically.

Views: 252 views. Averaging 1 per day.
In the most recent 30 day period, there've been 1 views.

Previous Article | Next Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support