======================================== 安装mysql:(在光盘上有rpm包) yum install mysql-server 或 rpm -ivh perl-DBD-MySQL rpm -ivh perl-DBI rpm -ivh mysql-server ========================================
======================================== 开启mysql: /etc/init.d/mysqld start service 服务名称 start/stop/status/restart
例如: /etc/init.d/network start service network start 注释: rpm包安装后,启动脚本默认都在 /etc/init.d/ 下
查看服务状态: /etc/init.d/mysqld status netstart -antpl | grep '3306' ========================================= |