Olá!
Estou tentando iniciar o MySQL Server para dar continuidade no curso de JPA, então comecei a assistir o curso de Introdução a SQL, mas aparentemente não será ensinado como resolver esse problema. Quando eu tento iniciar o MySQL pelo server eu recebo as seguintes msg:
tentei tres comandos: mysqld.exe ; mysqld.exe -u root - p e mysqld --initialize
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld.exe 2019-12-04T09:29:57.390971Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.18) starting as process 14820 2019-12-04T09:29:57.393517Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\mysqld_tmp_file_case_insensitive_test.lower-test 2019-12-04T09:29:57.393580Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\mysqld_tmp_file_case_insensitive_test.lower-test 2019-12-04T09:29:57.393710Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to 'C:\Program Files\MySQL\MySQL Server 8.0\data' (OS errno: 2 - No such file or directory) 2019-12-04T09:29:57.409780Z 0 [ERROR] [MY-010119] [Server] Aborting 2019-12-04T09:29:57.409934Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.18) MySQL Community Server - GPL.
C:\Program Files\MySQL\MySQL Server 8.0\bin>
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld.exe -u root -p Enter password: **** mysqld: Can not perform keyring migration : Invalid --keyring-migration-source option. 2019-12-04T09:30:43.263639Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.18) starting as process 14348 2019-12-04T09:30:43.266084Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\mysqld_tmp_file_case_insensitive_test.lower-test 2019-12-04T09:30:43.266147Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\mysqld_tmp_file_case_insensitive_test.lower-test 2019-12-04T09:30:43.266717Z 0 [ERROR] [MY-011084] [Server] Keyring migration failed. 2019-12-04T09:30:43.285300Z 0 [ERROR] [MY-010119] [Server] Aborting 2019-12-04T09:30:43.285459Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.18) MySQL Community Server - GPL.
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --initialize mysqld: Can't create directory 'C:\Program Files\MySQL\MySQL Server 8.0\data' (OS errno 13 - Permission denied) 2019-12-04T09:34:43.815973Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.18) initializing of server in progress as process 2556 2019-12-04T09:34:43.818385Z 0 [ERROR] [MY-010187] [Server] Could not open file 'C:\Program Files\MySQL\MySQL Server 8.0\data\DESKTOP-C9ECVCP.err' for error logging: Permission denied 2019-12-04T09:34:43.828033Z 0 [ERROR] [MY-013236] [Server] The designated data directory C:\Program Files\MySQL\MySQL Server 8.0\data\ is unusable. You can remove all files that the server added to it. 2019-12-04T09:34:43.833036Z 0 [ERROR] [MY-010119] [Server] Aborting 2019-12-04T09:34:43.833173Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.18) MySQL Community Server - GPL.
C:\Program Files\MySQL\MySQL Server 8.0\bin>