make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/usr/local/src/mysql-5.0.41/mysys' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-5.0.41' make: *** [all] Error 2
#创建软连接 ln
[root@Nagios-Servermysql-5.1.72]# ln -s /application/mysql5.1.72/ /application/mysql
lrwxrwxrwx 1 root root 25 12 月 7 21:04 /application/mysql -> /application/mysql5.1.72/
#注意:若 mysql 和 apache 不是安装在同一天服务上的话。Mysql 的安装就到此为止! 若是在同台服务器上,请继续执行以下操作:
[root@Nagios-Server tools]# ll mysql-5.1.72/support-files/my*.cnf
-rw-r--r-- 1 root root 4746 12 月 7 21:03 mysql-5.1.72/support-files/my-huge.cnf
-rw-r--r-- 1 root root 19779 12 月 7 21:03 mysql-5.1.72/support-files/my-innodb-heavy-4G.cnf
-rw-r--r-- 1 root root 4720 12 月 7 21:03 mysql-5.1.72/support-files/my-large.cnf
-rw-r--r-- 1 root root 4731 12 月 7 21:03 mysql-5.1.72/support-files/my-medium.cnf
-rw-r--r-- 1 root root 2499 12 月 7 21:03 mysql-5.1.72/support-files/my-small.cnf
#my.cnf 是 MySQL 默认的配置文件名
[root@Nagios-Server tools]# cd mysql-5.1.72/support-files/ [root@Nagios-Server support-files]# cp my-small.cnf /etc/my.cnf cp:是否覆盖"/etc/my.cnf"?y
#创建数据库文件
[root@Nagios-Server support-files]# mkdir /application/mysql/data –p
[root@Nagios-Server support-files]# chown -R mysql.mysql /application/mysql/data/ [root@Nagios-Serversupport-files]#/application/mysql/bin/mysql_install_db