Modify 

/etc/my.cnf

        [client] 
        socket=/tmp/mysock.sock

        [socket]
        socket=/tmp/mysock.sock

Edit 
        /usr/local/lib/php.ini 
        "mysql.default_socket="/tmp/mysql.sock"

Type
        mysqladmin --socket=/tmp/mysql.sock

----------------------------------------------------------------------------
-------
<html>
<body>
<?
$link =         mysql_pconnect("localhost:/tmp/mysql.sock", "user",
"password")
                or die ("Could not connect");
                Print ("Connected Successfully");
                mysql_select_db("test");
                $query = "select * from logbook";
                $result = mysql_query($query);
                print "<table>\n"; 
                while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { 
                print "\t<tr>\n"; 
                foreach ($line as $col_value) { 
                print "\t\t<td>$col_value</td>\n"; 
                } 
                print "\t</tr>\n"; } print "</table>\n"; 
                mysql_free_result($result); 
                mysql_close($link); 
?>
</body>
</html>
----------------------------------------------------------------------------
-------



----------------------------------------------------------------------------
---------
Andrew Rich (Technologist)
Telstra - OnAir Networks .
GSM and CDMA Operations
Web Page Administrator
 
Phone.    (07) 3391 7960
Fax.          (07) 3391 5248
Mobile      (0419) 738 223
Postal    Locked Bag 3716, BRISBANE  QLD  9008. 
E-Mail       [EMAIL PROTECTED]


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to