/*--> */ /*--> */ 介绍 本篇文章主要从查看MySQL的启动命令的代码来详细了解MySQL的启动过程,内容多为概念知识;理解MySQL的启动原理对熟悉MySQL至关重要,启动mysql服务有三种方式分别是:mysql.sever,mysqld,mysqld_safe。 my.cnf [client] socket=/tmp/mysql.sock port=3306 [mysqld] #################[base]########################## basedir =/usr/local/mysql datadir =/data/mysql/ innodb_data_home_dir=/data/mysql/ innodb_log_group_home_dir=/data/mysql/ port =3306 user=mysql pid-file=/data/mysql/mysql.pid socket =/tmp/mysql.sock default_storage_engine=innodb character_set_server=utf8 open_files_limit=65535 [mysqld_safe] log_error=/usr/local/mysql/log/mysql-error.log pid-file=