Добрый день. Собственно, сабж. Понимаю, что тема уже неоднократно поднималась, но в существующих решения проблемы не нашел. Samsdaemon отказывается запускаться.
Использую:
8.0-RELEASE FreeBSD
apache-1.3.41_1
squid-2.7.7
mysql-server-5.1.39
sams-1.0.4,1.
samba-3.0.37,1
php5-5.2.11[root@Proxy /]# mysql -u sams -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.1.39 FreeBSD port: mysql-server-5.1.39
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| squidctrl |
| squidlog |
| test |
+--------------------+
5 rows in set (0.02 sec)
mysql> use squidctrl;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+---------------------+
| Tables_in_squidctrl |
+---------------------+
| globalsettings |
| groups |
| ipreplace |
| log |
| passwd |
| proxyes |
| reconfig |
| redirect |
| sams |
| sconfig |
| sguard |
| shablons |
| squidusers |
| tree |
| urlreplace |
| urls |
+---------------------+
16 rows in set (0.01 sec)
[root@Proxy /]# samsdaemon -d
Starting process: pid = 21574
Read SAMS configuration... Ok
Connected database: squidctrl:127.0.0.1 user=sams
mysql_real_connect() error 0. no open database squidctrl, DELAY 3 sec
mysql_real_connect() error 1. no open database squidctrl, DELAY 3 sec
mysql_real_connect() error 2. no open database squidctrl, DELAY 3 sec
mysql_real_connect() error 3. no open database squidctrl, DELAY 3 sec
mysql_real_connect() error 4. no open database squidctrl, DELAY 3 sec
mysql_real_connect() error 5. no open database squidctrl, DELAY 3 sec
SAMS.CONF
[client]
REQUIRE: LOGIN cleanvar
REQUIRE: LOGIN cleanvar mysql
SQUID_DB=squidlog
SAMS_DB=squidctrl
#MYSQLHOSTNAME=localhost
MYSQLHOSTNAME=127.0.0.1
MYSQLUSER=sams
MYSQLPASSWORD=passwd
MYSQLVERSION=5.1
SQUIDCACHEFILE=access.log
SQUIDROOTDIR=/usr/local/etc/squid
SQUIDLOGDIR=/usr/local/squid/logs
SQUIDCACHEDIR=/usr/local/squid/cache
SAMSPATH=/usr/local
SQUIDPATH=/usr/local/sbin
#SQUIDGUARDLOGPATH=/var/log
#SQUIDGUARDDBPATH=/var/db/squidGuard
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout
LDAPSERVER=192.168.1.10
LDAPBASEDN=DOMAIN.DOM
LDAPUSER=yarche
LDAPUSERPASSWD=password
LDAPUSERSGROUP=Users
REJIKPATH=/usr/local/rejik
SHUTDOWNCOMMAND=shutdown -h now
CACHENUM=0
З.Ы.: уже неделю пытаюсь разобраться с данной проблемой.