On Tuesday 27 June 2006 03:35 am, 战芳 wrote:
> Hello everyone:
> I wanna connect to mysql server using PHP. My operating system is
> Redhat Fedora Core 4, and the version of mysql is 4.1.3 beta. I've started
> the server using a statement like this: #>/usr/local/mysql/bin/mysqld
> -uroot& -S/var/lib/mysql/mysql.sock
The & is what's screwing you up. & takes the
command /usr/local/mysql/bin/mysqld -uroot and puts it in the background. -S
is simply eaten up by the shell, and probably tried as arguments to test.
You probably want:
/usr/local/mysql/bin/mysqld -uroot -S/var/lib/mysql/mysql.sock
> But when I call mysql_pconnect("localhost","root","") in my web page, the
> server return me an error, saying "Can't connect to
> socket:/var/lib/mysql/mysql.sock(13)". How can I do?
>
> Fang
--
Chris White
PHP Programmer/DB Freeloader
Interfuel
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]