|
一个jsp、servlet的网站,租用了以下的服务器
机器配置
Linux RedHat AS3U6
Apache2.0
Mysql4.0
\
\
VSFTP2.0
Sshd2
"Administrartor tools(管理员工具)
Development tools(系统设置工具)"
在这些之外我安装了j2sdk-1.4.2-03和Tomcat-5.0.28,利用mysql-connector-java连接数据库。不知调了什么现在Mysql崩溃了,查了一些资料,可是没有效果。资料中提到的命令纷纷报错。于是我把/usr/local中的MySQL删除了,/etc/rc.local中的相关项也“#”了,还把系统中所有的(whereis mysql命令的结果)mysql都改成了_mysql,然后重新安装。我用的是mysql-standard-4.0.26-pc-linux-gnu-i686-glibc23.tar.gz,到
#cd /usr/local/mysql/script
#./mysql_install_db
报错
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
……其它命令的报错如下:
1, 在/usr/local/mysql/bin中 ./mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
2, 在/usr/local/mysql/bin中 ./mysqld_safe
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
060922 13:48:19 mysqld ended
3, 在/usr/local/mysql/support-files中 ./mysql.server start
Can't execute ./bin/mysqld_safe from dir /var/lib
4, 在/usr/local/mysql/script中 ./mysql_install_db
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
5, 在/usr/local/mysql/bin中 ./mysqladmin version
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
请问是什么原因呢?
另外,我该怎么做才能让他支持中文字符呢?
谢谢。 |
|