1: #!/bin/sh
2: rpm -ivh mysql-5.0.77-4.el5_5.4.i386.rpm --nodeps
3: rpm -ivh perl-DBI-1.52-2.el5.i386.rpm
4: rpm -ivh perl-DBD-MySQL-3.0007-2.el5.i386.rpm
5:
6: rpm -ivh mysql-server-5.0.77-4.el5_5.4.i386.rpm
7: ##设置MySQL服务随系统启动自启动
8: chkconfig mysqld on
9: echo "设置MySQL服务随系统启动自启动成功"
10: ##启动MySQL服务
11: echo "启动MySQL服务成功"
12: /etc/rc.d/init.d/mysqld start
13: ##关闭Linux的防火墙功能
14: echo "防火墙已关闭"
15: chkconfig iptables off
16: ##授权root 远程
17: grant all privileges on *.* to root@'%' identified by '123456';
18: