redHat5 local resposity yum install mysql

#copy from my sina blog http://blog.sina.com.cn/s/articlelist_1741226685_0_1.html

## if we can't connect to the internet,we can install by local yumresposity.

1. load ISO image
##create loading point:
mkdir /cdrom
2. load it 

mount /dev/hdc /cdrom
cd /cdrom
ls

3##local resposity yum install mysql
###create yum envirment

cd /etc/yum.repos.d
cp rhel-debuginfo.repo rhel-source.repo
vi rhel-source.repo

[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch -Source
baseurl=file:///cdrom/Server
enabled=1
gpgcheck=0

4 .### install mysql
yum install -y mysql*

5.## start the server
service mysqld start

6## config password for root
mysql>mysqladmin
- u root password "123456" ;

7.## config remote client can connect the server
mysql>mysql -u root -p
mysql>use mysql;
mysql>show databses;
mysql>update user set host ='%' where user='root';
mysql>flush privileges;

你可能感兴趣的:(redHat5 local resposity yum install mysql)