The application cannot start normally (0xc000007b) and the solution of initialization failure when mysql is installed

I encountered two thorny problems when reinstalling the mysql database (decompressed version).
1. Unable to start normally (0xc000007b)?
Use the mysql install command in the cmd console, under the installation path of mysql, and the following error of unable to start normally (0xc000007b) occurs, as shown in the figure:
write picture description here
Solution: Download the DirectX repair tool (enhanced version) on Baidu , you can fix it.
Link: http://www.pc6.com/softview/SoftView_57945.html
Note that you need to download the enhanced version, which can fix the system-related C++ components.
2. Initialization failed
After the mysql install command runs successfully, run the mysqld –initialize command to complete the database initialization function, which is the error: Found option without preceding group in config file: /data/3307/my.cnf at line: 1
write picture description here
Reason: my.ini file format is utf-8
solution, my.ini file is saved as ANSI format file
write picture description here
3, and finally run the net start mysql command
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325579473&siteId=291194637