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相关的软件。
一只站在树上的鸟儿,从来不会害怕树枝会断裂,因为它相信的不是树枝,而是它自己的翅膀。与其每天担心未来,不如努力做好现在。