[root@localhost ~]# /etc/init.d/mysqld start # 启动 MySQL,实际上是调用 mysqld_safe 程序来启动
[root@localhost ~]# /etc/init.d/mysqld stop # 关闭 MySQL,实际上是直接 kill $mysql_pid,不推荐使用这种方法
[root@localhost ~]# mysqladmin -uxxx -pxxx shutdown # 优雅地关闭 MySQL,推荐使用这种方法,可以写到启动脚本里