mysql 初始化数据库报错 bin/mysqld \ > --initialize-insecure \ 2018-07-09T09:01:33.092169Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-07-09T09:01:33.093305Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting. 2018-07-09T09:01:33.099451Z 0 [ERROR] Too many arguments (first extra is ' '). 2018-07-09T09:01:33.093325Z 0 [ERROR] Aborting
报错 [ERROR] --initialize specified but the data directory has files in it. Aborting.
解决方法 删除data 原因 ,可能是重复安装 mysql 导致 data文件夹下有文件 rm -rf /usr/local/mysql/data/*