Re: I can't connect to mysql server with PHP

2006-05-24 Thread gerald_clark
战芳 wrote: Hi! gerald_clark, But when I call mysql_pconnect(localhost:3306,root,root_password),it return the same error. How can I get the permission to open /var/mysql/lib/mysql.sock? Fang what do you get when you do ls -l /var/mysql/lib/mysql.sock?

Re: Re: I can't connect to mysql server with PHP

2006-05-23 Thread 战芳
Hi! gerald_clark, But when I call mysql_pconnect(localhost:3306,root,root_password),it return the same error. How can I get the permission to open /var/mysql/lib/mysql.sock? Fang fool.ben wrote: Hi everybody! I've install a mysql server on my computer.

Re: I can't connect to mysql server with PHP

2006-05-22 Thread gerald_clark
fool.ben wrote: Hi everybody! I've install a mysql server on my computer. The operating system is Redhat fedora core 4. The version of the mysql server is 4.1.3 Beta. I wanna connect to the server using the following statement: $db_connection=mysql_pconnect(localhost,root,); The server returned