I have a Debian 4.0_r3 system:
Code: Select all
debian:~# uname -a
Linux debian 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux
Code: Select all
aptitude install apache2
Code: Select all
debian:~# mysql -V
mysql Ver 14.12 Distrib 5.0.51b, for pc-linux-gnu (i686) using EditLine wrapper
I have installed the ZM from source - ZoneMinder-1.23.3.tar.gz
And when I try to get access via web: http://192.168.1.103/zm/
I get the following error:
Code: Select all
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /var/www/zm/zm_db.php on line 27
Could not connect to database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
according to /etc/my.cnf, socket file is in /tmp folder:
Code: Select all
.....
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
........