Detailed error information of MySQL version 5.7.31 startup
MySQL version Mysql-5.7.31 initialization error information is shown in the figure below
The configuration file is correct There’s no problem with the permissions of my.cnf configuration file. How can the default initialization still go to the/usr/local/MySQL directory
A complete solution Specify basedir and dataDir again during initialization
mysqld –initialize –console –basedir=/usr/local/develop/mysql-5.7.31 –datadir=/usr/local/develop/mysql-5.7.31/data
So far, the problem has been solved Successfully initialized
I’m sending you a question But there will be problems when starting, as shown in the figure
This is a very special problem
A complete solution
./mysqld –user=root –basedir=/usr/local/develop/mysql-5.7.31 –datadir=/usr/local/develop/mysql-5.7.31/data
Be careful not to add start after the start command Otherwise, it will prompt another error
As shown in the picture
After the start command is executed successfully, check whether MySQL exists
ps -ef |grep mysql
end
Read More:
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- Docker Create tomcat Error standard_init_linux.go:211: exec user process caused “no such file or directory”
- [Solved] Adb Shell Monkey Warning: can‘t create log.txt, Read-only file system
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- crtdbg.h No such file or directory error [How to Solve]
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] Mac Install mongodb error: NonExistentPath: Data directory /data/db not found.
- [Solved] PostgreSQL Error: Could not connect to server: no such file or directory
- [Solved] Error executing Jupyter command ‘notebook‘: [Errno 2] No such file or directory
- [Solved] MAC Nginx Error: ginx.pid“ failed (2: No such file or directory)
- [Solved] Linux Start jar Error: nohup: failed to run command ‘java‘: No such file or directory
- [Solved] open failed: ENOENT (No such file or directory)
- C++: fatal error: variant: No such file or directory
- [Solved] Fluent filesysterexception: exists failed, path =’d: \ as’. Plugins’ (OS error: incorrect file name, directory name or volume slogan)
- fatal error: libusb.h: No such file or directory [How to Solve]