Ho installato un server MySQL con l'installer e ha iniziato. Dopo il riavvio ho provato a iniziare di nuovo e ottenere l'errore:mysqld: impossibile cambiare la dir in dati. Il server non si avvia
D:\Program Files\MySQL\MySQL Server 5.7\bin>mysqld -u root -p
mysqld: Can't change dir to 'D:\Program Files\MySQL\MySQL Server 5.7\data\' (Errcode: 2 - No such file or directory)
2015-11-17T08:30:18.822962Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-11-17T08:30:18.822962Z 0 [Warning] Insecure configuration for --secure- file -priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2015-11-17T08:30:18.822962Z 0 [Note] mysqld (mysqld 5.7.9) starting as process 1108 ...
2015-11-17T08:30:18.838586Z 0 [Warning] Can't create test file D:\Program Files\MySQL\MySQL Server 5.7\data\DESKTOP-RNBR3E8.lower-test
2015-11-17T08:30:18.838586Z 0 [Warning] Can't create test file D:\Program Files\MySQL\MySQL Server 5.7\data\DESKTOP-RNBR3E8.lower-test
2015-11-17T08:30:18.838586Z 0 [ERROR] failed to set datadir to D:\Program Files\MySQL\MySQL Server 5.7\data\
2015-11-17T08:30:18.838586Z 0 [ERROR] Aborting
2015-11-17T08:30:18.838586Z 0 [Note] Binlog end
2015-11-17T08:30:18.838586Z 0 [Note] mysqld: Shutdown complete
Ho provato a reinstallare MySQL.
UPDATE:
Quando eseguo mysqld -u root -p
come amministratore, non succede nulla.
Verificare che la cartella esista e che l'utente mysql disponga delle autorizzazioni – georgecj11
Lo stesso è successo a me. Credo che il problema sia 1. directory di installazione non standard (non C: \ ..) e \ o 2. Directory dati non standard e \ o 3. MySQL non installato come servizio. L'ho risolto usando la risposta di nulliusinverba, anche se sembra che l'istanza (processo) si comporti ancora in modo strano. – Riva
Se si sta installando su Windows, si consiglia vivamente di utilizzare l'installer '.msi'. Molto più semplice dell'installazione manuale –