MySQL log is divided into error log, binary log, slow query log, query log 1. The error log can be used to view the file of the error log through the following command: Show variables like ' Log_error '; the above command can be used to locate the
Log classification:One, error log.1, the configuration in the configuration file is:log-error= "Desktop-igoodful.err", view the parameters of the key value pairs: Show variables like ' log_error ';Two, binary log.Three, slow query log.1, slow query
MySQL Log managementError logInformation in the server startup and shutdown processError message during server runInformation generated when the event Scheduler runs an eventInformation generated from the server process when it is started from the
For MySQL, each step will have a corresponding record, such as insert,update,delete, DROP, alter and other related DDL or DML operations. Sometimes it's hard to make mistakes, but how to recover the data when something goes wrong.For example, you
1 OverviewThis article will cover the following six types of MySQL logs related conceptsQuery log: General_logSlow query log: log_slow_queriesError log: Log_error, log_warningsBinary log: BinlogRelay log: Relay_logTransaction log: Innodb_log2 Query
The MySQL logs have the following six types:
Error logs: Server startup, shutdown, error messages generated during operation, and information generated when an event (event dispatch) is run, and information generated from server processes
Brief introduction:MySQL provides several types of log files that reflect different MySQL information, and it is necessary to understand them.1. Error logThe error log records all the more severe warnings and error messages during MySQL server
Error log the log service started offQuerying logs query log
Normal query log General query log client link and SQL
Slow query log slow query log execution time exceeds specified value
Binary log binary logs information about the
One or four types of logs1. Error log: Log the start, run, and shutdown process of MySQL server, ending with. Err by defaultMysql> Show variables like ' log_error ';2, binary log * * *Documenting all DDL and DML operations that a user makes to a
MySQL mainly has the following types of logs:
The error log--mysql information and other error and warning messages during service startup and shutdown. The default is in the data directory.
General query log--logs that are used to
This article is a mariadb-10.0.17 version of the build: https://downloads.mariadb.org/interstitial/mariadb-10.0.17/source/ Mariadb-10.0.17.tar.gz/from/http%3a//ftp.hosteurope.de/mirror/archive.mariadb.org/?servemaster:192.168.1.166slave:192.168.1.165
This article "My MySQL Learning experience (15)" will explain the MySQL logThe logs in MySQL are divided into 4 categories, and using these log files, you can see what's happening inside MySQL.respectively is1, error log: Log the MySQL service start,
In MySQL, there are 4 different logs, namely error log, binary log, query log, and slow query log.Error logThe error log records information about when MySQL starts and stops, and when a critical error occurs during the run of the server.To view the
[Root@aslibra www.aslibra.com]# mysql-s/data/www.aslibra.com/mysql/mysql.sock-uadmin-ppasswordWelcome to the MySQL Monitor. Commands End With; or G.Your MySQL Connection ID is 322891Server Version:5.5.2-m2-log Source Distribution
Type ' help, ' or '
1, view log situation
Copy Code code as follows:
Mysql> show global variables like '%log% ';
+---------------------------------+---------------------------------+
| variable_name | Value |
+---------------------------------+------------
Log files are very important for a server, it records the operation of the server information, many operations will be written to log files, through the log file can monitor the running state of the server and view the performance of the server, but
The following article mainly describes the MySQL operation log to see the actual operation steps and the actual operation steps of the specific description, if you encounter similar situation in the actual operation, but you do not know how to solve
Log type:First, error log1. Record the information in the server startup and shutdown process2. Error messages during server operation3. Information generated when the event Scheduler runs an event4. Information generated when booting from the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.