1. Enter the mysql installation directory, and then enter the data directory (this directory stores the data of the database)
Online video Tutorial recommendation: linux video tutorial
2. After entering the data directory, you can find two subdirectories: mysql test (it can be seen that mysql data storage is stored separately according to different user-defined databases) )
3. Enter the mysql directory and find the file suffix .err, which is the mysql running error log, which can be opened with the vi command for analysis.
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of View mysql running error log in linux environment. For more information, please follow other related articles on the PHP Chinese website!