In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Typically, MySQL outputs the error log to the hostname.err file, but MySQL5.7 can print the error log to the operating system log as follows:
When the MySQL server starts, add the-- syslog parameter to mysqld_safe, as follows:
Start the MySQL service:
[root@mysql log] # / usr/local/mysql/bin/mysqld_safe-defaults-file=/etc/my.cnf-syslog-user=mysql &
[1] 17994
[root@mysql log] # 2017-07-21T04:05:12.802731Z mysqld_safe Logging to syslog.
2017-07-21T04:05:12.807548Z mysqld_safe Logging to'/ var/log/mysqld.log'.
2017-07-21T04:05:12.828189Z mysqld_safe Starting mysqld daemon with databases from / mysql/data
[root@mysql log] #
View the Syslog:
[root@mysql log] # tail-f / var/log/messages
Jul 21 12:05:14 mysql mysqld [18451]: Server hostname (bind-address):'*'; port: 3306
Jul 21 12:05:14 mysql mysqld [18451]: IPv6 is available.
Jul 21 12:05:14 mysql mysqld [18451]:':: 'resolves to'::'
Jul 21 12:05:14 mysql mysqld [18451]: Server socket created on IP:.
Jul 21 12:05:14 mysql mysqld [18451]: Event Scheduler: Loaded 0 events
Jul 21 12:05:14 mysql mysqld [18451]: / usr/local/mysql/bin/mysqld: ready for connections.#012Version: '5.7.18 Jul log' socket:' / tmp/mysqld.sock' port: 3306 Source distribution
Jul 21 12:05:14 mysql mysqld [18451]: Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option'--disable-partition-engine-check' to skip this check.
Jul 21 12:05:14 mysql mysqld [18451]: Beginning of list of non-natively partitioned tables
Jul 21 12:05:14 mysql mysqld [18451]: End of list of non-natively partitioned tables
Jul 21 12:05:14 mysql mysqld [18451]: InnoDB: Buffer pool (s) load completed at 170721 12:05:14
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.