按照下面的链接在win10子系统安装MySQL
https://jingyan.baidu.com/article/a378c9609eb652b3282830fd.html
但在安装数据库:执行命令 ./scripts/mysql_install_db --user=mysql时
因为目录下方没有scripts文件夹,而mysql_install_db在bin中,因此运行了bin目录下的,结果出现报错
2019-05-06 22:40:18 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2019-05-06 22:40:18 [ERROR] The data directory needs to be specified.
运行mysqld --initialize后,报错如下:
2019-05-06T15:28:27.489513Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-05-06T15:28:27.494275Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2019-05-06T15:28:27.501543Z 0 [ERROR] Aborting
以为有文件可以不用初始化……
但是后面启动MySQL也启动不起来,求大佬指点,谢谢