|
||||||||||||
|
struggling with 3.2
From: scott <scott(at)sporticia.com>
Date: Sat Nov 30 2002 - 13:09:42 EST
I've just installed a new i386 based OpenBSD 3.2 box, and I'm having some difficulties I don't seem to be able to get apache/php and mysql to work together any more I installed from the packages mysql server and client, and php4 core and mysql. I have used phpxs -s and then phpxs -a mysql, and it echoed that it had activated the mysql extension I tried a test page to confirm funtionality with the following code (which works ok on my OpenBSD 3.1 box) <?php $link = mysql_connect("localhost", "user", "password")or die("Could not connect");
print "Connected successfully";
$query = "SELECT * FROM user";
print "<table>\n";
print "\t} print "</table>\n";
mysql_close($link);
but the page comes back saying "Can't connect to local MySQL server through socket /var/run/mysql/mysql.sock". this file does exist, it is in that location can anyone suggest anything. a google search for that error statement just brings up loads of websites that have that error on the page :o( thanks _scott Received on Sat Nov 30 13:11:06 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:31:48 EDT |
|||||||||||
|
||||||||||||