mysql 诡异错误 variable 'defaults-file

# 今天尝试在mysqld启动脚本中增加 --defaults-file 配置文件参数,可是加上自后mysql私活起不来....
151102 04:46:10 mysqld_safe mysqld from pid file /application/mysql5.5/data/166087.sys.ipv4.io.pid ended
151102 04:46:33 mysqld_safe Starting mysqld daemon with databases from /application/mysql5.5/data
151102  4:46:33 InnoDB: The InnoDB memory heap is disabled
151102  4:46:33 InnoDB: Mutexes and rw_locks use GCC atomic builtins
151102  4:46:33 InnoDB: Compressed tables use zlib 1.2.3
151102  4:46:33 InnoDB: Initializing buffer pool, size = 128.0M
151102  4:46:33 InnoDB: Completed initialization of buffer pool
151102  4:46:33 InnoDB: highest supported file format is Barracuda.
151102  4:46:33  InnoDB: Waiting for the background threads to start
151102  4:46:34 InnoDB: 5.5.32 started; log sequence number 1709143
151102  4:46:34 [ERROR] /application/mysql5.5/bin/mysqld: unknown variable 'defaults-file=/application/mysql/conf/my.cnf'
151102  4:46:34 [ERROR] Aborting


#baidu gooole 搜索均无答案,没办法自己不断尝试,终于发现TM顺序不对FUCK
#正常启动
/application/mysql5.5/bin/mysqld_safe  --defaults-file=/application/mysql/conf/my.cnf  --datadir=/application/mysql5.5/data --pid-file=/application/mysql5.5/data/166087.sys.ipv4.io.pid

#启动报错
/application/mysql5.5/bin/mysqld_safe --datadir=/application/mysql5.5/data --pid-file=/application/mysql5.5/data/166087.sys.ipv4.io.pid --defaults-file=/application/mysql/conf/my.cnf


你可能感兴趣的:(mysql 诡异错误 variable 'defaults-file)