MYSQL常见安装错误集:[ERROR] --INITIALIZE SPECIFIED BUT THE DATA DIRECTORY HAS FILES IN IT. ABORT

1、[ERROR] --initialize specified but the data directory has files in it. Abort

[错误] -初始化指定,但数据目录中有文件。中止

解决方法:将数据目录下已存在的文件全部删除。如:rm -rf /data/mysql/*

重新初始化:

/usr/local/mysql/bin/mysqld
--user=mysql
--basedir=/usr/local/mysql
--datadir=/data/mysql

你可能感兴趣的:(MYSQL常见安装错误集:[ERROR] --INITIALIZE SPECIFIED BUT THE DATA DIRECTORY HAS FILES IN IT. ABORT)