Is there a data folder in the root directory of the MySQL installation?The data folder cannot be created manually because there is no data file for the manual creation. You need to use the following command
Mysqld — the initialize – insecure
Initialize the data files under dataDir, and then a data folder will appear under the root directory of the installation, which will contain a bunch of files
If an error occurs during this process, follow the following steps to re-execute it
First uninstall the service using the mysqld — remove command
Then install it using the mysqld — install command
I then initialize it using mysqld –initialize-insecure
Mysqld — the initialize – insecure
Initialize the data files under dataDir, and then a data folder will appear under the root directory of the installation, which will contain a bunch of files
If an error occurs during this process, follow the following steps to re-execute it
First uninstall the service using the mysqld — remove command
Then install it using the mysqld — install command
I then initialize it using mysqld –initialize-insecure
Read More:
- Solve net start mysql, start MySQL service, prompt system error 5. Access denied.
- MySQL error set: failed to start mysql.service : Unit mysql.service is masked.
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- An error was reported during MySQL 6.0 installation: start service failed
- Centos7 executes the command service mysqld start and prompts Failed to start mysqld.service: Unit mysqld.service not loaded
- MySQL failed to start prompt: job failed to start
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- [mysql] “Failed to start MySQL Server” error resolution
- The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- System error 5 occurred in net start mysql. Access denied)
- Question: cannot create windows service for mysql.error : 0 (install MySQL)
- Tdengine failed to start, start request repeated too quickly for taosd.service
- Net start mongodb failed to start: system error 5 has occurred. Access is denied
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- Failed to start docker.service : unit not found
- Mysql start slave error 1201 (HY000)
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- Apache service failed to start, semaphore not released