You are here: Re: Cannot get mysql_connect to work « PHP Programming Language « IT news, forums, messages
Re: Cannot get mysql_connect to work

Posted by David Haynes on 12/28/05 04:48

Michael wrote:
> David,
>
> Thank you for your help. The file /etc/my.cnf is shown below. It looks
> like the default location is correct in the sense that the file
> /var/lib/mysql/mysql.sock does exist (whether it contains the correct
> information, I cannot tell).
>
> Also, please not that I can connect to MySQL through the MySQL monitor
> by typing "mysql".
>
> Do you, or anyone else have any other suggestions? I think I'm stuck at
> this point...
>
> mysqld]
> datadir=/var/lib/mysql
> socket=/var/lib/mysql/mysql.sock
>
> [mysql.server]
> user=mysql
> basedir=/var/lib
>
> [safe_mysqld]
> err-log=/var/log/mysqld.log
> pid-file=/var/run/mysqld/mysqld.pid
>

Another question:
Are you running php standalone or via a web server?

-david-

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация