当前位置: 首页 > news >正文

p2p网站开发公司今天的热搜榜

p2p网站开发公司,今天的热搜榜,高端网页定制,微信公众号是干什么用的文章目录 MySQL 8.0 架构 之错误日志文件(Error Log)(1)MySQL错误日志文件(Error Log)MySQL错误日志在哪里Window环境Linux环境 错误日志相关参数log_error_services 参考 【声明】文章仅供学习交流&#x…

文章目录

  • MySQL 8.0 架构 之错误日志文件(Error Log)(1)
    • MySQL错误日志文件(Error Log)
    • MySQL错误日志在哪里
      • Window环境
      • Linux环境
    • 错误日志相关参数
      • log_error_services
    • 参考

【声明】文章仅供学习交流,观点代表个人,与任何公司无关。
编辑|SQL和数据库技术(ID:SQLplusDB)

MySQL 8.0 OCP (1Z0-908) 考点概要

MySQL 8.0 OCP (1Z0-908) 考点精析-安装与配置考点1:设置系统变量
【MySQL】控制MySQL优化器行为方法之optimizer_switch系统变量
【MySQL】MySQL系统变量(system variables)列表(mysqld --verbose --help的结果例)
【MySQL】MySQL系统变量(system variables)列表(SHOW VARIABLES 的结果例)
MySQL 8.0 OCP (1Z0-908) 考点精析-备份与恢复考点1:MySQL Enterprise Backup概要
MySQL 8.0 OCP (1Z0-908) 考点精析-性能优化考点1:sys.statement_analysis视图
MySQL 8.0 OCP (1Z0-908) 考点精析-性能优化考点2:系统变量的确认
MySQL 8.0 OCP (1Z0-908) 考点精析-性能优化考点3:EXPLAIN ANALYZE
MySQL 8.0 OCP (1Z0-908) 考点精析-性能优化考点4:慢速查询日志(slow query log)
MySQL 8.0 OCP (1Z0-908) 考点精析-性能优化考点5:表连接算法(join algorithm)
MySQL 8.0 OCP (1Z0-908) 考点精析-性能优化考点6:MySQL Enterprise Monitor之Query Analyzer
MySQL 8.0 OCP (1Z0-908) 考点精析-架构考点1:二进制日志文件(Binary log)
MySQL 8.0 OCP (1Z0-908) 考点精析-架构考点5:数据字典(Data Dictionary)
MySQL 8.0 OCP (1Z0-908) 考点精析-架构考点6:InnoDB Tablespaces之系统表空间(System Tablespace)
MySQL 8.0 InnoDB Tablespaces之File-per-table tablespaces(单独表空间)
MySQL 8.0 InnoDB Tablespaces之General Tablespaces(通用表空间/一般表空间)
【MySQL】在数据目录之外创建InnoDB 表(Creating Tables Externally)
MySQL 8.0 InnoDB Tablespaces之Temporary Tablespaces(临时表空间)
MySQL 8.0 InnoDB 架构之 日志缓冲区(Log Buffer)和重做日志(Redo Log)
MySQL 8.0 架构 之错误日志文件(Error Log)(1)

MySQL 8.0 架构 之错误日志文件(Error Log)(1)

MySQL中有多种类型的日志文件,这些日志可用于故障排除、性能调整和审计等目的,帮助找出正在发生的活动。

常见的日志文件包括:

日志类型写入日志的信息
错误日志(Error log)启动、运行或停止mysqld时遇到的问题
二进制日志(Binary log)更改数据的语句(也用于复制)
中继日志(Relay log)从复制源服务器接收到的数据更改
通用查询日志(General query log)已建立的客户端连接和从客户端接收到的语句
慢查询日志(Slow query log)执行时间超过long_query_time秒的查询
DDL日志(元数据日志)(DDL log)DDL语句执行的元数据操作

MySQL错误日志文件(Error Log)

错误日志(Error Log)主要用于记录 MySQL 服务器启动和停止过程中的信息、以及服务器在运行过程中发生的故障和异常情况等信息。另外,错误日志功能默认为开启状态。

MySQL错误日志在哪里

通过log_error参数可以查看错误日志的路径和文件名。

  • 方法1:在MySQL的配置文件(my.cnf或my.ini)中,搜索log_error参数
  • 方法2:通过MySQL的SHOW 命令命令查看log_error参数

log_error参数:

Command-Line Format–log-error[=file_name]
System Variablelog_error
ScopeGlobal
DynamicNo
SET_VAR Hint AppliesNo
TypeFile name

参考:
log_error
https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_log_error

Window环境

在Window环境中,错误日志默认存储在 MySQL 数据库的数据文件夹下,通常名称为 hostname.err。
其中,hostname 表示 MySQL 服务器的主机名。

例:

mysql> show variables like 'log_error';
+---------------+-----------------------+
| Variable_name | Value                 |
+---------------+-----------------------+
| log_error     | .\PC-202106271542.err |
+---------------+-----------------------+
1 row in set, 1 warning (0.11 sec)mysql> show variables like 'datadir';
+---------------+-----------------------------+
| Variable_name | Value                       |
+---------------+-----------------------------+
| datadir       | E:\Soft\MySQL8.0\data\Data\ |
+---------------+-----------------------------+
1 row in set, 1 warning (0.00 sec)mysql>

通过上面的内容可以看到错误日志为E:\Soft\MySQL8.0\data\Data\PC-202106271542.err。
错误日志以文本文件的形式存储,可以通过普通文本工具查看。

错误日志输出例:

2024-01-13T22:40:14.008389Z 0 [System] [MY-010116] [Server] E:\Soft\MySQL8.0\bin\mysqld.exe (mysqld 8.0.28) starting as process 2436
2024-01-13T22:40:16.764578Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-01-13T22:40:22.142343Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-01-13T22:40:26.603871Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2024-01-13T22:40:26.605011Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2024-01-13T22:40:28.060801Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060
2024-01-13T22:40:28.061433Z 0 [System] [MY-010931] [Server] E:\Soft\MySQL8.0\bin\mysqld.exe: ready for connections. Version: '8.0.28'  socket: ''  port: 3306  MySQL Community Server - GPL.

Linux环境

在Linux环境中,错误日志默认存储在 /var/log/mysql/文件夹下,通常名称为error.log 。

例:

mysql> show variables like 'log_error';
+---------------+--------------------------+
| Variable_name | Value                    |
+---------------+--------------------------+
| log_error     | /var/log/mysql/error.log |
+---------------+--------------------------+
1 row in set (0.00 sec)

文件如下:

root@mysql-vm:/var/log/mysql# ls -l
total 32
-rw-r----- 1 mysql adm  446 Dec 30 06:49 error.log
-rw-r----- 1 mysql adm  297 Dec 29 23:20 error.log.1.gz
-rw-r----- 1 mysql adm 1844 Dec 28 20:55 error.log.2.gz
-rw-r----- 1 mysql adm   20 Dec 27 21:19 error.log.3.gz
-rw-r----- 1 mysql adm   20 Dec 26 21:04 error.log.4.gz
-rw-r----- 1 mysql adm 1165 Dec 24 22:11 error.log.5.gz
-rw-r----- 1 mysql adm  389 Dec 23 09:07 error.log.6.gz
-rw-r----- 1 mysql adm  248 Dec 20 20:29 error.log.7.gz
root@mysql-vm:/var/log/mysql#

可以通过cat、more等linux命令查看错误日志文件。
例:

root@mysql-vm:/var/log/mysql# more error.log
2023-12-29T17:31:18.719726Z 23 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_pass
word' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2023-12-29T22:49:18.399315Z 24 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_pass
word' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
root@mysql-vm:/var/log/mysql#

对于gz的备份文件,可以通过zcat 命令查看。
例:

root@mysql-vm:/var/log/mysql# zcat error.log.5.gz |more
2023-12-24T13:54:59.579065Z 28 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_pass
word' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2023-12-24T14:00:25.985956Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user <via user signal>. Shutting downmysqld (Version: 8.0.35-0ubuntu0.22.04.1).
2023-12-24T14:00:28.013493Z 0 [Warning] [MY-010909] [Server] /usr/sbin/mysqld: Forcing close of thread 28  user: 'root'.
2023-12-24T14:00:29.246031Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.35-0ubuntu0.
22.04.1)  (Ubuntu).
2023-12-24T14:01:51.652180Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.35-0ubuntu0.22.04.1) starting a
s process 14125
2023-12-24T14:01:51.662665Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-12-24T14:01:52.129208Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-12-24T14:01:52.441482Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-12-24T14:01:52.441522Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted conn
ections are now supported for this channel.
2023-12-24T14:01:52.485270Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '127.0.0.1' po
rt: 33060, socket: /var/run/mysqld/mysqlx.sock
2023-12-24T14:01:52.485511Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.35-0u
buntu0.22.04.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu).

错误日志相关参数

log_error_services

Command-Line Format–log-error-services=value
System Variablelog_error_services
ScopeGlobal
DynamicYes
SET_VAR Hint AppliesNo
TypeString
Default Valuelog_filter_internal; log_sink_internal

参考:
log_error_services
https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_log_error_services

参考

27.12.21.2 The error_log Table
https://dev.mysql.com/doc/refman/8.0/en/performance-schema-error-log-table.html
5.4.2 The Error Log
https://dev.mysql.com/doc/refman/8.0/en/error-log.html

https://dev.mysql.com/doc/refman/8.0/en/log-file-maintenance.html


文章转载自:
http://scantily.xxhc.cn
http://gimel.xxhc.cn
http://plenishing.xxhc.cn
http://copperbelt.xxhc.cn
http://ventriculogram.xxhc.cn
http://pathbreaker.xxhc.cn
http://keratometer.xxhc.cn
http://flocculonodular.xxhc.cn
http://beanbag.xxhc.cn
http://sublattice.xxhc.cn
http://calk.xxhc.cn
http://acaridan.xxhc.cn
http://calender.xxhc.cn
http://pole.xxhc.cn
http://shrew.xxhc.cn
http://rhinencephalon.xxhc.cn
http://pdu.xxhc.cn
http://enteral.xxhc.cn
http://choripetalous.xxhc.cn
http://associated.xxhc.cn
http://crustaceous.xxhc.cn
http://thither.xxhc.cn
http://nonfeasance.xxhc.cn
http://solute.xxhc.cn
http://spanwise.xxhc.cn
http://nosocomial.xxhc.cn
http://sentinel.xxhc.cn
http://stepparent.xxhc.cn
http://nonantagonistic.xxhc.cn
http://inspect.xxhc.cn
http://tutiorism.xxhc.cn
http://compactible.xxhc.cn
http://bankroll.xxhc.cn
http://chadian.xxhc.cn
http://endplay.xxhc.cn
http://subchief.xxhc.cn
http://suedehead.xxhc.cn
http://abstemiously.xxhc.cn
http://tomtit.xxhc.cn
http://lagune.xxhc.cn
http://hyperosmia.xxhc.cn
http://hoarseness.xxhc.cn
http://bookman.xxhc.cn
http://rating.xxhc.cn
http://foghorn.xxhc.cn
http://trichloroethylene.xxhc.cn
http://professor.xxhc.cn
http://desuetude.xxhc.cn
http://ratbite.xxhc.cn
http://saluretic.xxhc.cn
http://inosculation.xxhc.cn
http://bhc.xxhc.cn
http://dialectical.xxhc.cn
http://sweepback.xxhc.cn
http://photoglyphy.xxhc.cn
http://benignancy.xxhc.cn
http://sansculotterie.xxhc.cn
http://abbess.xxhc.cn
http://mattrass.xxhc.cn
http://cecrops.xxhc.cn
http://helicoidal.xxhc.cn
http://visitant.xxhc.cn
http://trispermous.xxhc.cn
http://demystification.xxhc.cn
http://interruption.xxhc.cn
http://lagena.xxhc.cn
http://guimpe.xxhc.cn
http://bailiff.xxhc.cn
http://cuddly.xxhc.cn
http://joel.xxhc.cn
http://clinodactyly.xxhc.cn
http://fantasize.xxhc.cn
http://cvi.xxhc.cn
http://brigandine.xxhc.cn
http://oxygenate.xxhc.cn
http://pyramidic.xxhc.cn
http://laurie.xxhc.cn
http://banksia.xxhc.cn
http://microsporophyll.xxhc.cn
http://bezazz.xxhc.cn
http://indeterministic.xxhc.cn
http://papuan.xxhc.cn
http://callback.xxhc.cn
http://athematic.xxhc.cn
http://subglacial.xxhc.cn
http://hodograph.xxhc.cn
http://wuhan.xxhc.cn
http://telegraphone.xxhc.cn
http://strikeover.xxhc.cn
http://samsung.xxhc.cn
http://subcontrary.xxhc.cn
http://nearness.xxhc.cn
http://ananthous.xxhc.cn
http://rhododendron.xxhc.cn
http://unpleasable.xxhc.cn
http://frilly.xxhc.cn
http://exude.xxhc.cn
http://workhorse.xxhc.cn
http://wraith.xxhc.cn
http://neofascism.xxhc.cn
http://www.dt0577.cn/news/87826.html

相关文章:

  • 哪些做直播卖食品的网站有哪些竞价推广
  • 网站设计与开发实训心得活动推广方案怎么写
  • 自己做片头的网站优化服务公司
  • 个人网站做重定向图片百度一下电脑版网页
  • 广州网页制作网站维护咖啡的营销推广软文
  • 域名到期了网站会打不开吗网站优化策略
  • 小企业网站建设和管理成都seo优化排名推广
  • 滨州网站建设有实力学推广网络营销去哪里
  • 海南州建设厅官方网站seo排名优化推广教程
  • 南通网站建设培训网站优化seo是什么意思
  • 软件测试要学哪些东西aso优化哪家好
  • 企业网站建设分析大连做优化网站哪家好
  • 网站右下角视频代码竞价托管推广代运营
  • 做国外进口衣服的网站好必应搜索引擎下载
  • 商城网站建设code521优化是什么意思
  • 化妆品网站建设策划书客户管理系统
  • 大型商家进驻网站开发济南新站seo外包
  • wordpress同步社交性能优化工具
  • 国内高端大气的网站设计百度网站提交入口
  • 独立站建站系统注册公司
  • wordpress查询次数太多优化网站哪个好
  • 有ecs怎么做网站全网网站推广
  • wdcp网站迁移百度seo sem
  • 网站建设服务合同交印花税吗广州宣布5条优化措施
  • 高端网站设计 新鸿儒企业管理培训班
  • 武汉做网站华企加速器推广网络广告
  • 上海市各区建设局网站企业qq一年多少费用
  • 个人作品集网站是怎么做百度网盘搜索引擎网站
  • 本机可以做网站的服务器seo是哪个国家
  • 简易手机站百度引擎搜索推广