我正在尝试安装请求跟踪器。
make testdeps 表示所有依赖项都存在。
问题是rt无法连接到mysql。
[root@128 rt-4.0.6]# make initialize-database
/usr/bin/perl -I/opt/rt4/local/lib -I/opt/rt4/lib sbin/rt-setup-database --action init --prompt-for-dba-password
In order to create or update your RT database, this script needs to connect to your mysql instance on localhost as root
Password:
Working with:
Type: mysql
Host: localhost
Name: rt4
User: rt_user
DBA: root
Failed to connect to dbi:mysql:;host=localhost as user 'root': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)make: *** [initialize-database] Error 255
[root@128 rt-4.0.6]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
我开始认为 mysql 配置不正确。以下命令将不起作用。
Service mysqld status
/etc/init.d/mysqld restart
没有文件/var/lib/mysql/mysql.sock。
请让我知道问题出在哪里。