很久没整linux了,全忘光了。linux版本为Fedora12,用的是root账户安装mysql,系统之前安装的mysql以及配置文件都已经卸载掉了,反复装了很多次,就是不知道怎么起来,哪位大哥帮看下怎么来处理,谢谢了。[root@localhost MySQL]# rpm -ivh MySQL-server-5.1.7-0.i386.rpm 
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.Please report any problems with the /usr/bin/mysqlbug script!The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting MySQL................................... ERROR! 

解决方案 »

  1.   

    网上的帖子我几乎扫过一遍了 他们说的Log我都找不到 指点一下哪个log 谢谢
      

  2.   

    查询当前操作系统中是否存在MySQL 服务可使用命令:rpm –qa | grep –i “mysql”
    卸载当前操作系统中的MySQL服务可使用命令:rpm –ev mysql。其中mysql用具体的版本号代替。如你的版本号为: MySQL-client-community-5.0.45-0.rhel5. 则输入:
    rpm –ev MySQL-client-community-5.0.45-0.rhel5.
    rpm卸载命令执行完成后须删除 /etc/init.d/ 的mysql程序和 /var/lib/ 的mysql数据目录。
    例如:rm /etc/init.d/mysql
          rm –rf /var/lib/mysql
    1.MySQL-server-community-5.0.86-0.rhel5.i386.rpm    --服务端程序
    2.MySQL-client-community-5.0.86-0.rhel5.i386.rpm    --客户端程序
    使用rpm 安装MySQL的命令是rpm –ivh,结合MySQL的rpm包,完整的rpm执行命令为:
    rpm -ivh MySQL-server-community-5.0.86-0.rhel5.i386.rpm
    rpm -ivh MySQL-client-community-5.0.86-0.rhel5.i386.rpm
    rpm -ivh MySQL-shared-community-5.0.86-0.rhel5.i386.rpm看看有帮助没.记得卸干净
      

  3.   

    我看楼主比较适合使用ubuntu
    一个apt-get全部搞定
      

  4.   

    一般用rpm安装包安装的话,都有相应的权限了的..奇怪了,不过解决了就好