Closed someok closed 4 years ago
https://dev.mysql.com/doc/refman/8.0/en/data-directory-initialization.html
for windows: mysqld --initialize --console
It's fixed on the build 30. Thanks.
in ubuntu >>>> ' sudo mysqld --initialize --console ' worked
Please fill out the detail below, it helps me investigate the bug:
Driver (Ex: PostgreSQL 10.0):
DBngin build number:
macOS version:
The steps to reproduce this issue: 2018-12-20T19:15:09.929856Z 0 [System] [MY-010910] [Server] /Users/Shared/DBngin/mysql/8.0.12/bin/mysqld: Shutdown complete (mysqld 8.0.12) MySQL Community Server - GPL. 2018-12-20T19:15:20.400289Z 0 [System] [MY-010116] [Server] /Users/Shared/DBngin/mysql/8.0.12/bin/mysqld (mysqld 8.0.12) starting as process 71450 2018-12-20T19:15:20.404050Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /Users/wjx/Library/Application Support/com.tinyapp.DBngin/Engines/mysql/6F549A55-2948-4458-8AB3-22567F862EFD/ is case insensitive 2018-12-20T19:15:20.404415Z 0 [Warning] [MY-010122] [Server] One can only use the --user switch if running as root 2018-12-20T19:15:20.409312Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory. 2018-12-20T19:15:20.409503Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2018-12-20T19:15:20.409529Z 0 [ERROR] [MY-010119] [Server] Aborting