yum 安装 mysql

# yum  -y  install  mysql
#   yum install mysql-server
#   yum install mysql-devel
#  chgrp -R mysql /var/lib/mysql
#   chmod -R 770 /var/lib/mysql
#  service  mysqld start

# mysql -u root -ppassword    //进入mysql控制台
# mysql>use mysql;
# mysql>update user set host = '%' where user = 'root';    //这个命令执行错误时可略过
# mysql>flush privileges;
# mysql>select host, user from user; //检查‘%’ 是否插入到数据库中
#mysql>quit

 

 

 

//安装yum

#! /bin/bash

echo "Install rpmforge ..."

rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
 
echo "Install epel ..."
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-7.noarch.rpm
 
echo "Done
 
 
安装错误:

kernel-2.6.32-220.13.1.el6.x86_64 has missing requires of kernel-firmware >= ('0', '2.6.32', '220.13.1.el6')

解决方法:

# vim /etc/yum.conf 注释此项即可“#exclude=kernel*”

此参数的意思是排除安装或更新kernel开头的软件,而我们安装开发工具包需要依赖kernel相关的软件。

 

posted @ 2012-11-02 18:20  Rhythmk  阅读(308)  评论(1编辑  收藏  举报
Rhythmk 个人笔记