当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Problem in installing MySQL on RHEL AS3 Update3

Unix/Linux
Linux操作系统下硬盘手工和自动挂载的方法
linux grep搜索命令的使用方法
Linux重定向
linux 系统的一些使用小技巧
LINUX系统下grub菜单的几个技巧
Linux系统下设置Tomcat自启动
Linux操作系统添加安装新硬盘的方法图解
解决Linux系统下Openoffice乱码
Linux源码包编译和安装
Redhat Linux 9 ADSL连接设置图解
linux下实现定时关机
linux最简单的ADSL断线重拨
制作Linux的usb启动盘
Linux系统下硬盘分区最佳方案
Vi编辑器的使用方法
LINUX系统下vsftpd 命令详解
RedHat AS4上安装配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e
Webmin 安装和使用
用VNC远程图形化连接Linux桌面的配置方法
正确修改Linux的系统时间

Unix/Linux 中的 Problem in installing MySQL on RHEL AS3 Update3


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 119 ::
收藏到网摘: n/a


When install the RHEL AS3U3 with default setup, the MySQL-server will not be installed. But installing OSCAR4.1 on a RHEL AS3 Update3 computer needs the MySQL-server.version.rpm(put into the /tftpboot/rpm directory,which will be used by slave nodes). The easiest way to got the MySQL-server.version.rpm is to rebuild the MySQL-version.src.rpm package. While do this, there are some issues that you should pay attention to.
When install the RHEL AS3U3 with default setup, the MySQL-server will not be installed. But installing OSCAR4.1 on a RHEL AS3 Update3 computer needs the MySQL-server.version.rpm(put into the /tftpboot/rpm directory,which will be used by slave nodes). The easiest way to got the MySQL-server.version.rpm is to rebuild the MySQL-version.src.rpm package. While do this, there are some issues that you should pay attention to.
1. If you download the MySQL-version.src.rpm package from MySQL.com(Just as I have done anteriorly),then do

root#rpmbuild --rebuild MySQL-3.23.58-1.src.rpm
while,you will get a error message just like" user mysqldev does not exist-using root "
which can be resolved by adding a user named "mysqldev" and #chown the MySQL-3.23.58-1.src.rpm to user "mysqldev".
But when I redo the #rpmbuild, it still reports some error message
(Perhaps this will not occured to all version, but the version 3.23.58-1 on RHEL AS3U3 still can't be rebuilded successfully)
2. If you download the MySQL-version.src.rpm package from RedHat.com, congratulation!
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/i386/srpms/mysql-3.23.58-1.src.rpm
root#rpmbuild --rebuild mysql-3.23.58-1.src.rpm
everything work well.
After installed the MySQL package and then started the MySQL server, most probably you will encounter "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" error. Which can be figured out as follows:
#vi /etc/my.cnf
added these two lines
[client]
socket=/var/lib/mysql/mysql.sock