[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] RE: MySQL - Creating Databases / Users / Tables - solution



>i use this php script:
>
><HTML>
><HEAD>
><TITLE>MySQL user</TITLE>
></HEAD>
><BODY BGCOLOR=white TEXT=black>
><font face='verdana, arial' size=1>
><?
>if( $navn && $kodeord ) {
>
>echo "$addremove user $navn with password $kodeord...<br>";
>mysql_connect( "localhost", "root", "$pwdadmin" );
>echo mysql_error();


[snip rest of script]


This looks exactly like the script I'm looking for - however I get connection errors - the php on my box is looking for /tmp/mysql.sock and on my box it's apparently at:

/var/lib/mysql/mysql.sock

Where do I change this?

tia

Greg
-- 
http://www.webyourbusiness.com/
Providers of E-Commerce Software &
Web Design Consultancy and Services.
PH: (970)266-0195 FAX: (970)266-0158