红联Linux门户
Linux帮助

安装MYSQL失败,烦请各位前辈看看!

发布时间:2009-10-12 12:51:59来源:红联作者:wikee
之前是正常安装过MYSQL的 由于失误操作,需要卸载!
后来使用 rpm -e 卸载

卸载后查看信息后重装,缺怎么都安装不上去了,不知道要怎样操作?
麻烦各位给分析分析!

login as: root
root@192.168.0.5's password:
Last login: Mon Oct 12 12:32:38 2009
[root@localdomain ~]# rpm -qa|grep mysql
[root@localdomain ~]# rpm -q mysql
package mysql is not installed
[root@localdomain ~]# cd /dl
[root@localdomain dl]# ls
MySQL-client-community-5.0.51a-0.rhel4.i386.rpm
MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
jdk-1_5_0_08-linux-i586.rpm perl-DBI-1.40-5.i386.rpm
[root@localdomain dl]# rpm -ivh MySQL-client-community-5.0.51a-0.rhel4.i386.rpm
warning: MySQL-client-community-5.0.51a-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
package MySQL-client-community-5.0.51a-0.rhel4 is already installed
[root@localdomain dl]# rpm -ivh MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
warning: MySQL-server-community-5.0.51a-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
package MySQL-server-community-5.0.51a-0.rhel4 is already installed
[root@localdomain dl]#

这样是没有安装成功啊!
文章评论

共有 4 条评论

  1. 默念那份爱 于 2010-03-05 15:42:54发表:

    等待楼下

  2. ailida 于 2010-01-30 12:57:14发表:

    将网络下载的mysql-5.0.56.tar.gz文件放在/usr/local/src目录并解包
    #cd /usr/local/src
    #tar xzvf mysql-5.0.56.tar.gz
    #cd mysql-5.0.56

    2. 编译安装
    ./configure --with-extra-charsets=utf8 --prefix=/apps/mysql-5.0.41 --localstatedir=/apps/mysql-5.0.41/data --with-unix-socket-path=/apps/mysql-5.0.41/mysql.sock --with-charset=utf8
    如果编译成功,你会看到:Thank you for choosing MySQL!

    #make
    在此过程中遇到"/usr/bin/ld: cannot find -lncurses"错误,安装libncurses5-dev包后再次编译正常。

    #make install
    安装完成

    3.useradd mysql
    /apps/mysql-5.0.41/bin/mysql_install_db --user=mysql
    chown -R mysql:mysql /Data/apps/mysql-5.0.41
    /apps/mysql-5.0.41/bin/mysql_safe & (启动)
    /apps/mysql-5.0.41/bin/mysqladmin -u root shutdown (关闭)



    安装MYSQL系统表
    chown -R mysql:mysql /apps/mysql-5.0.41
    *#cp share/mysql/my-medium.cnf /etc/my.cnf
    *#cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld
    *#chmod 755 /etc/rc.d/init.d/mysqld
    /apps/mysql-5.0.41/bin/mysql_safe & 启动mysql
    /apps/mysql-5.0.41/bin/mysqladmin -u root shutdown

    *#bin/mysqladmin -u root password "your password"
    转载的,希望对你有帮助

  3. heyao 于 2010-01-25 05:53:25发表:

    看3306端口

  4. you778589 于 2009-10-13 11:24:23发表:

    你觉得这样对吗