02.MySQL_积累

1SHOW相关命令

 

1.show常用命令:

#返回可用数据库:

SHOW DATABASES;

 

#返回当前数据库内可用表:

SHOW TABLES;

SHOW TABLES FROM database_name;

 

#显示当前使用或者指定的database中的每个表的信息。信息包括表类型和表的最新更新时间:

SHOW TABLE STATUS

SHOW TABLE STATUS FROM database_name;

 

#返回表中字段名、数据类型、是否允许NULL、键信息、默认值、其他:

SHOW COLUMNS FROM table_name;

SHOW COLUMNS FROM table_name FROM database_name;

SHOW COLUMNS FROM database_name.table_name;

DESCRIBE table_name;

 

#显示表的索引

SHOW INDEX FROM table_name;

 

#显示创建特定数据库的MySQL语句:

SHOW CREATE DATABASE database_name;

#显示创建特定表的MySQL语句:

SHOW CREATE TABLE database_name;

 

#显示系统中正在运行的所有进程,也就是当前正在执行的查询:

SHOW PROCESSLIST;

SELECT * FROM information_schema.`PROCESSLIST` WHERE db = 'database_name';

SELECT * FROM information_schema.processlist WHERE db = 'database_name' AND USER  = 'user_name' ORDER BY TIME DESC;

 

#显示系统变量的名称和值:

SHOW VARIABLES;

SHOW VARIABLES LIKE '%max_connections%';

 

#显示一些系统特定资源的信息,例如,正在运行的线程数量:

SHOW STATUS;

SHOW STATUS LIKE 'Threads%';

 

#显示最后一个执行的语句所产生的错误、警告和通知。

show warnings;

#只显示最后一个执行语句所产生的错误。

show errors;

 

#查询当前用户的信息:

SELECT user();

 

#查询用户的权限:

SELECT * FROM mysql.user WHERE Host = '10.101.84.174' AND User = 'user_name';

SHOW GRANTS FOR 'idb_rnd'; 

 

#显示服务器所支持的不同权限:

SHOW PRIVILEGES;

 

2.权限分为以下几种:

1.数据库/数据表/数据列权限:

Alter: 修改已存在的数据表(例如增加/删除列)和索引。

Create: 建立新的数据库或数据表。

Delete: 删除表的记录。

Drop: 删除数据表或数据库。

INDEX: 建立或删除索引。

Insert: 增加表的记录。

Select: 显示/搜索表的记录。

Update: 修改表中已存在的记录。

 

2.全局管理MySQL用户权限:

file: 在MySQL服务器上读写文件。

PROCESS: 显示或杀死属于其它用户的服务线程。

RELOAD: 重载访问控制表,刷新日志等。

SHUTDOWN: 关闭MySQL服务。

 

3.特别的权限:

ALL: 允许做任何事(和root一样)。

USAGE: 只允许登录--其它什么也不允许做。

 

3.show常用命令:

show tables或show tables from database_name或show database_name.tables;

解释:显示当前数据库中所有表的名称

 

show databases;

解释:显示mysql中所有数据库的名称

 

show processlist;

解释:显示系统中正在运行的所有进程,也就是当前正在执行的查询。大多数用户可以查看

他们自己的进程,但是如果他们拥有process权限,就可以查看所有人的进程,包括密码。

 

show table status;

解释:显示当前使用或者指定的database中的每个表的信息。信息包括表类型和表的最新更新时间

 

show columns from table_name from database_name; 或show columns from database_name.table_name;或show fields;

解释:显示表中列名称(和 desc table_name 命令的效果是一样的)

 

show grants for user_name@localhost;

解释:显示一个用户的权限,显示结果类似于grant 命令

 

show index from table_name;或show keys;

解释:显示表的索引

 

show status;

解释:显示一些系统特定资源的信息,例如,正在运行的线程数量

 

show variables;

解释:显示系统变量的名称和值

 

show privileges;

解释:显示服务器所支持的不同权限

 

show create database database_name;

解释:显示创建指定数据库的SQL语句

 

show create table table_name;

解释:显示创建指定数据表的SQL语句

 

show engies;

解释:显示安装以后可用的存储引擎和默认引擎。

 

show innodb status;

解释:显示innoDB存储引擎的状态

 

show logs;

解释:显示BDB存储引擎的日志

 

show warnings;

解释:显示最后一个执行的语句所产生的错误、警告和通知

 

show errors;

解释:只显示最后一个执行语句所产生的错误

 

show status 结果说明

列 含义

Name 表名

Type 表的类型 (ISAM,MyISAM或HEAP)

Row_format 行存储格式 (固定, 动态, 或压缩)

Rows 行数量

Avg_row_length 平均行长度

Data_length 数据文件的长度

Max_data_length 数据文件的最大长度

Index_length 索引文件的长度

Data_free 已分配但未使用了字节数

Auto_increment 下一个 autoincrement(自动加1)值

Create_time 表被创造的时间

Update_time 数据文件最后更新的时间

Check_time 最后对表运行一个检查的时间

Create_options 与CREATE TABLE一起使用的额外选项

Comment 当创造表时,使用的注释 (或为什么MySQL不能存取表信息的一些信息)。

 

 

show index 结果说明:

列 含义

Table 表名

Non_unique 0,如果索引不能包含重复。

Key_name 索引名

Seq_in_index 索引中的列顺序号, 从 1 开始。

Column_name 列名。

Collation 列怎样在索引中被排序。在MySQL中,这可以有值A(升序) 或NULL(不排序)。

Cardinality 索引中唯一值的数量。这可通过运行isamchk -a更改.

Sub_part 如果列只是部分被索引,索引字符的数量。NULL,如果整个键被索引。

 

 

show variables 结果说明:

Aborted_clients 由于客户没有正确关闭连接已经死掉,已经放弃的连接数量。

Aborted_connects 尝试已经失败的MySQL服务器的连接的次数。

Connections 试图连接MySQL服务器的次数。

Created_tmp_tables 当执行语句时,已经被创造了的隐含临时表的数量。

Delayed_insert_threads 正在使用的延迟插入处理器线程的数量。

Delayed_writes 用INSERT DELAYED写入的行数。

Delayed_errors 用INSERT DELAYED写入的发生某些错误(可能重复键值)的行数。

Flush_commands 执行FLUSH命令的次数。

Handler_delete 请求从一张表中删除行的次数。

Handler_read_first 请求读入表中第一行的次数。

Handler_read_key 请求数字基于键读行。

Handler_read_next 请求读入基于一个键的一行的次数。

Handler_read_rnd 请求读入基于一个固定位置的一行的次数。

Handler_update 请求更新表中一行的次数。

Handler_write 请求向表中插入一行的次数。

Key_blocks_used 用于关键字缓存的块的数量。

Key_read_requests 请求从缓存读入一个键值的次数。

Key_reads 从磁盘物理读入一个键值的次数。

Key_write_requests 请求将一个关键字块写入缓存次数。

Key_writes 将一个键值块物理写入磁盘的次数。

Max_used_connections 同时使用的连接的最大数目。

Not_flushed_key_blocks 在键缓存中已经改变但是还没被清空到磁盘上的键块。

Not_flushed_delayed_rows 在INSERT DELAY队列中等待写入的行的数量。

Open_tables 打开表的数量。

Open_files 打开文件的数量。

Open_streams 打开流的数量(主要用于日志记载)

Opened_tables 已经打开的表的数量。

Questions 发往服务器的查询的数量。

Slow_queries 要花超过long_query_time时间的查询数量。

Threads_connected 当前打开的连接的数量。

Threads_running 不在睡眠的线程数量。

Uptime 服务器工作了多少秒。

 

 

2SELECT语句

 

1.LIMIT 3,5,从第3行以后取5行:

SELECT * FROM table_name WHERE is_deleted = 'n' ORDER BY id LIMIT 3,5;

SELECT * FROM table_name WHERE is_deleted = 'n' ORDER BY id LIMIT 5 OFFSET 3;

 

2.表名和列名均可以完全限定:

SELECT column_name FROM Table_name WHERE is_deleted = 'n';

SELECT table_name.column_name FROM dataBase_name.table_name WHERE is_deleted = 'n';

 

3.WHERE子句操作符:

= 等于   <> 不等于   != 不等于   < 小于   <= 小于等于   > 大于   >= 大于等于   BETWEEN 在指定的两个值之间

 

4.AND操作符优先级高于OR;即在处理OR操作符前,会有限处理AND操作符;

 

5.通配符: 通配符搜索的处理比其他更慢,因此尽量不用,或者放在最后;

% 匹配0个、1个或多个字符

_ 匹配单个字符

 

 

3)正则表达式: REGEXP

1. 默认:

SELECT COUNT(*) FROM table_name WHERE is_deleted = 'n' AND title LIKE '%HF%';

SELECT COUNT(*) FROM table_name WHERE is_deleted = 'n' AND title REGEXP 'HF'; 

 

2.| 相当于 OR

SELECT COUNT(*) FROM table_name WHERE is_deleted = 'n' AND (title LIKE '%HF%' OR title LIKE '%LC%');

SELECT COUNT(*) FROM table_name WHERE is_deleted = 'n' AND title REGEXP 'HF|LC'; 

 

3.[] 匹配几个字符之一

SELECT * FROM table_name WHERE is_deleted = 'n' AND (address LIKE '%杭区%' OR court_name LIKE '%湖区%' OR court_name LIKE '%江区%');

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '杭区|湖区|江区';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[杭湖江]区';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[杭|湖|江]区';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '杭|湖|江';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[杭湖江]'; #结果错的为什么?

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[AF]';#这个是对的

 

4.[0-9a-zA-Z] 匹配范围(不区分大小写)

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[0-9a-z]';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[AF]0';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP 'A0|F0';

 

5.\\ 匹配特殊字符

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '\\[';

 

6.\\ 引用元字符

\\f 换页   \\n 换行   \\r 回车   \\t 制表   \\v 纵向制表

 

7.匹配字符类

# [:alnum:] 任意字母和数字 (同[a-zA-Z0-9])

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[[:alnum:]]0';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[0-9a-z]0';

# [:alnum:] 任意字符 (同[a-zA-Z])

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[[:alpha:]]0';

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '[a-zA-Z]0';

# [:blank:] 空格和制表符 (同[\\t])

# [:cntrl:] ASCII控制字符 (ASCII 0到31和127)

# [:digit:] 任意数字 (同[0-9])

# [:graph:] 与[:print:]相同,但不包括空格

# [:lower:] 任意大小写字母 (同[a-z])

# [:print:] 任意可打印字符

# [:punct:] 既不在[:alnum:]又不在[:cntrl:]中的任意字符

# [:space:] 包括空格在内的任意空白字符 (同[\\f\\n\\r\\t\\v])

# [:upper:] 任意大写字母 (同[A-Z])

# [:xdigit:] 任意十六进制数字 (同[a-fA-F0-9])

 

8.匹配多个实例

*       0个或多个匹配

+       1个或多个匹配 (等于{1,})

?       0个或1个匹配 (等于{0,1})

{n}     指定数目的匹配

{n,}    不少于指定书目的匹配

{n,m}   匹配数目的范围 (m不超过255)

 

9.定位符

^          文本的开始

$          文本的结尾

[[:<:]]    词的开始

[[:<:]]    词的结尾

#以两个字母开头的法院名称:

SELECT * FROM table_name WHERE is_deleted = 'n' AND address REGEXP '^[a-z]{2,}';

 

 

4HEX函数

 

HEX函数: 可以把字段转为16进制,然后正则匹配 对应中文的code码

utf8汉字编码16进制的正则匹配格式是: e[4-9][0-9a-f]{4}

#使用正则匹配出中文字符:

SELECT * FROM table_name WHERE is_deleted = 'n' AND HEX(address) REGEXP 'e[4-9][0-9a-f]{4}';

#使用正则匹配出非中文字符:

SELECT * FROM table_name WHERE is_deleted = 'n' AND HEX(address) NOT REGEXP 'e[4-9][0-9a-f]{4}';

 

 

---------------------------------------------------------------------------------

in 和 exists

in是把外表和内表作hash 连接,而exists 是对外表作loop 循环,每次loop 循环再对内表进行查询。

如果两个表中一个较小,一个是大表,则子查询表大的用exists,子查询表小的用in

 

not in 和not exists

如果查询语句使用了not in 那么内外表都进行全表扫描,没有用到索引;

而not extsts 的子查询依然能用到表上的索引。所以无论那个表大,用not exists 都比not in 要快。

 

大数据量,表连接占优;中数据量,exists比in要好,也更容易用上索引;小数据量,in就OK了,逻辑更清晰点

 

 

5)时间日期

 

create_time= '2017-11-02 17:30:19'

date(create_time)  #2017-11-02

adddate(date(create_time),1) #2017-11-03

adddate(create_time,1) #2017-11-03 17:30:19

 

SELECT                                       #030734

,filing_time                                            #2017-11-13 17:30:19

,date(filing_time)                                      #2017-11-13

,adddate(date(create_time),8)                           #2017-11-21

,curdate()                                              #2017-11-14

,datediff(adddate(date(create_time),8),curdate()) AS 天数  #7

,CASE                                                   #剩余7天

WHEN datediff(adddate(date(create_time),8),curdate()) >= 7 THEN '剩余7天' 

WHEN datediff(adddate(date(create_time),8),curdate()) <=0 THEN '超过7天' 

ELSE datediff(adddate(date(create_time),8),curdate()) END AS 剩余天数

FROM table_name WHERE is_deleted = 'n' AND id = 030734;

 

 

2025-06-19 13:54:33 10592 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Normal shutdown 2025-06-19 13:54:33 10592 [Note] Giving 15 client threads a chance to die gracefully 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Killing the scheduler thread, thread id 116 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Waiting for the scheduler thread to reply 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Stopped 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Purging the queue. 2 events 2025-06-19 13:54:33 10592 [Note] Shutting down slave threads 2025-06-19 13:54:35 10592 [Note] Forcefully disconnecting 3 remaining clients 2025-06-19 13:54:35 10592 [Warning] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Forcing close of thread 35 user: &#39;wcs&#39; 2025-06-19 13:54:35 10592 [Warning] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Forcing close of thread 8 user: &#39;wcs&#39; 2025-06-19 13:54:35 10592 [Warning] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Forcing close of thread 3729 user: &#39;wcs&#39; 2025-06-19 13:54:35 10592 [Note] Binlog end 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;partition&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;PERFORMANCE_SCHEMA&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_DATAFILES&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_TABLESPACES&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_FOREIGN_COLS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_FOREIGN&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_FIELDS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_COLUMNS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_INDEXES&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_TABLESTATS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_SYS_TABLES&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_FT_INDEX_TABLE&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_FT_INDEX_CACHE&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_FT_CONFIG&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_FT_BEING_DELETED&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_FT_DELETED&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_FT_DEFAULT_STOPWORD&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_METRICS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_BUFFER_POOL_STATS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_BUFFER_PAGE_LRU&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_BUFFER_PAGE&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_CMP_PER_INDEX_RESET&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_CMP_PER_INDEX&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_CMPMEM_RESET&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_CMPMEM&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_CMP_RESET&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_CMP&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_LOCK_WAITS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_LOCKS&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;INNODB_TRX&#39; 2025-06-19 13:54:35 10592 [Note] Shutting down plugin &#39;InnoDB&#39; 2025-06-19 13:54:35 10592 [Note] InnoDB: FTS optimize thread exiting. 2025-06-19 13:54:35 10592 [Note] InnoDB: Starting shutdown... 2025-06-19 13:54:37 10592 [Note] InnoDB: Shutdown completed; log sequence number 31950984072 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;BLACKHOLE&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;ARCHIVE&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;MRG_MYISAM&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;MyISAM&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;MEMORY&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;CSV&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;sha256_password&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;mysql_old_password&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;mysql_native_password&#39; 2025-06-19 13:54:37 10592 [Note] Shutting down plugin &#39;binlog&#39; 2025-06-19 13:54:37 10592 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Shutdown complete 2025-06-19 13:54:38 3896 [Note] Plugin &#39;FEDERATED&#39; is disabled. 2025-06-19 13:54:38 289c InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB&#39;s internal memory allocator. 2025-06-19 13:54:38 3896 [Note] InnoDB: Using atomics to ref count buffer pool pages 2025-06-19 13:54:38 3896 [Note] InnoDB: The InnoDB memory heap is disabled 2025-06-19 13:54:38 3896 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2025-06-19 13:54:38 3896 [Note] InnoDB: Memory barrier is not used 2025-06-19 13:54:38 3896 [Note] InnoDB: Compressed tables use zlib 1.2.3 2025-06-19 13:54:38 3896 [Note] InnoDB: Not using CPU crc32 instructions 2025-06-19 13:54:38 3896 [Note] InnoDB: Initializing buffer pool, size = 8.0G 2025-06-19 13:54:38 3896 [Note] InnoDB: Completed initialization of buffer pool 2025-06-19 13:54:38 3896 [Note] InnoDB: Highest supported file format is Barracuda. 2025-06-19 13:54:39 3896 [Note] InnoDB: 128 rollback segment(s) are active. 2025-06-19 13:54:39 3896 [Note] InnoDB: Waiting for purge to start 2025-06-19 13:54:39 3896 [Note] InnoDB: 5.6.21 started; log sequence number 31950984072 2025-06-19 13:54:39 3896 [Note] Server hostname (bind-address): &#39;*&#39;; port: 3306 2025-06-19 13:54:39 3896 [Note] IPv6 is available. 2025-06-19 13:54:39 3896 [Note] - &#39;::&#39; resolves to &#39;::&#39;; 2025-06-19 13:54:39 3896 [Note] Server socket created on IP: &#39;::&#39;. 2025-06-19 13:54:39 3896 [Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem. 2025-06-19 13:54:39 3896 [Warning] Info table is not ready to be used. Table &#39;mysql.slave_master_info&#39; cannot be opened. 2025-06-19 13:54:39 3896 [Warning] InnoDB: Cannot open table mysql/slave_worker_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem. 2025-06-19 13:54:39 3896 [Warning] InnoDB: Cannot open table mysql/slave_relay_log_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem. 2025-06-19 13:54:39 3896 [Warning] Info table is not ready to be used. Table &#39;mysql.slave_relay_log_info&#39; cannot be opened. 2025-06-19 13:54:39 3896 [Note] Event Scheduler: Loaded 2 events 2025-06-19 13:54:39 3896 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: ready for connections. Version: &#39;5.6.21-log&#39; socket: &#39;&#39; port: 3306 MySQL Community Server (GPL) 2025-06-19 13:54:39 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.22&#39;. 2025-06-19 13:54:39 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.22&#39;. 2025-06-19 13:54:39 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:39 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:39 3896 [Note] - fe80::659c:c088:9d63:4346%17 2025-06-19 13:54:39 3896 [Note] - fe80::659c:c088:9d63:4346%17 2025-06-19 13:54:39 3896 [Note] - 11.1.85.24 2025-06-19 13:54:39 3896 [Note] - 169.254.119.0 2025-06-19 13:54:39 26c InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 26c2025-06-19 13:54:39 2a90 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 2a90 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedercameradata" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedercameradata" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:39 2cb0 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 2cb0 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:39 2028 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 20282025-06-19 13:54:39 249c InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 249c InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:39 1c84 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 1c84 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."errorrecord" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:39 808 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 808 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."systemlog" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:41 2d04 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:41 2d04 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."devicestate_monitorinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:41 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.31&#39;. 2025-06-19 13:54:41 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:41 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:41 3896 [Note] - 169.254.170.71 2025-06-19 13:54:42 24b8 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:42 24b8 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."userinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:42 3896 [Warning] Hostname &#39;DESKTOP-1LL2I5F&#39; does not resolve to &#39;11.1.85.33&#39;. 2025-06-19 13:54:42 3896 [Note] Hostname &#39;DESKTOP-1LL2I5F&#39; has the following IP addresses: 2025-06-19 13:54:42 3896 [Note] - fe80::7082:fd95:7ec0:bcc8%17 2025-06-19 13:54:42 3896 [Note] - 169.254.255.9 2025-06-19 13:54:42 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.26&#39;. 2025-06-19 13:54:42 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:42 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:42 3896 [Note] - 11.1.85.31 2025-06-19 13:54:42 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.22&#39;. 2025-06-19 13:54:42 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:42 3896 [Note] - fe80::659c:c088:9d63:4346%17 2025-06-19 13:54:42 3896 [Note] - 11.1.85.37 2025-06-19 13:54:43 808 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:43 808 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."portcode_timing" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:43 25a0 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:43 25a0 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."helpmanual" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:45 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.30&#39;. 2025-06-19 13:54:45 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:45 3896 [Note] - fe80::6b84:3a08:e1d0:e750%17 2025-06-19 13:54:45 3896 [Note] - 11.1.85.31 2025-06-19 13:54:45 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.24&#39;. 2025-06-19 13:54:45 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:45 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:45 3896 [Note] - 11.1.85.28 2025-06-19 13:54:47 3896 [Warning] Hostname &#39;DESKTOP-S1Q82IV&#39; does not resolve to &#39;11.1.85.27&#39;. 2025-06-19 13:54:47 3896 [Note] Hostname &#39;DESKTOP-S1Q82IV&#39; has the following IP addresses: 2025-06-19 13:54:47 3896 [Note] - fe80::3711:88ce:2316:8596%17 2025-06-19 13:54:47 3896 [Note] - 169.254.226.201 2025-06-19 13:54:47 808 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2c6c InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2c6c2025-06-19 13:54:47 808 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 24b8 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 24b82025-06-19 13:54:47 78c InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 78c InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfohist" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."arrival" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."arrival_copy" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."bagcheckalarmforsto" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."bagcode_base64" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."baglifeinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."bagscanresultinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."basisdata" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."billlog" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."billloghist" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."checkscaleinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."countinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."customerinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."departure" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."departure_copy" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."devicestateinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."devicestateinfooferrorclosewcs" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."eachscanresult" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."electricenergyrecord" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."event_log" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."fail_upload" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."failsortinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."failsortinfohist" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."failuploaddata" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo1" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfohist" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."interfaceusagedetail" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."jdv2picinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."loading_occupancy" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."manualcodingresult" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."manualcodingresulthist" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."moduleversion" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."nccountinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."orderauto" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."packagecode" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."packageprintinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."port_bagid" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."port_printer" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."portandboxcode" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."portcode_timinghist" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."queue_task" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."readtarget" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."reuploadopccodedata" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."routingtable" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."scannersortinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."scanresult" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."show_billcode" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."sortcodeinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."statisticsofpackagesupplyrecords" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."switchshiftofsto" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."ts" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."upload_fail" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."uploaddata" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."uploadpicinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."user" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."useractioninfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."userrank_rankname" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."userrankinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."webpointparameter" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."webpointparameter2" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."yzgjsortinfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."yzshift" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead. 2025-06-19 13:54:49 3896 [Warning] Hostname &#39;DESKTOP-S1Q82IV&#39; does not resolve to &#39;11.1.85.25&#39;. 2025-06-19 13:54:49 3896 [Note] Hostname &#39;DESKTOP-S1Q82IV&#39; has the following IP addresses: 2025-06-19 13:54:49 3896 [Note] - fe80::a18:a682:b681:52a8%17 2025-06-19 13:54:49 3896 [Note] - 169.254.226.201 2025-06-19 13:54:49 3896 [Warning] Hostname &#39;DESKTOP-S1Q82IV&#39; does not resolve to &#39;11.1.85.39&#39;. 2025-06-19 13:54:49 3896 [Note] Hostname &#39;DESKTOP-S1Q82IV&#39; has the following IP addresses: 2025-06-19 13:54:49 3896 [Note] - fe80::416:a93d:15ac:92bc%17 2025-06-19 13:54:49 3896 [Note] - 169.254.226.201 2025-06-19 13:54:49 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.40&#39;. 2025-06-19 13:54:49 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:49 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:49 3896 [Note] - 11.1.85.28 2025-06-19 13:54:50 3896 [Warning] Hostname &#39;DESKTOP-S1Q82IV&#39; does not resolve to &#39;11.1.85.32&#39;. 2025-06-19 13:54:50 3896 [Note] Hostname &#39;DESKTOP-S1Q82IV&#39; has the following IP addresses: 2025-06-19 13:54:50 3896 [Note] - fe80::3711:88ce:2316:8596%17 2025-06-19 13:54:50 3896 [Note] - 169.254.226.201 2025-06-19 13:54:50 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.38&#39;. 2025-06-19 13:54:50 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:50 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:50 3896 [Note] - 169.254.178.147 2025-06-19 13:54:51 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.36&#39;. 2025-06-19 13:54:51 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:51 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:51 3896 [Note] - 169.254.170.71 2025-06-19 13:54:52 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.28&#39;. 2025-06-19 13:54:52 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:52 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:52 3896 [Note] - 11.1.85.36 2025-06-19 13:54:53 3896 [Warning] Hostname &#39;DESKTOP-56G0R2L&#39; does not resolve to &#39;11.1.85.37&#39;. 2025-06-19 13:54:53 3896 [Note] Hostname &#39;DESKTOP-56G0R2L&#39; has the following IP addresses: 2025-06-19 13:54:53 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:53 3896 [Note] - 11.1.85.28 windows2019下安装的mysql5.6 今天启动报错1067,重启服务器后正常了,以上是收集的mysql日志,帮忙分析报错1067的原因
06-21
<think>我们面对的是MySQL5.6在WindowsServer2019上启动时出现错误1067的问题。错误1067通常表示进程意外终止。我们需要分析可能的原因并提供解决方案。根据引用内容,MySQL的日志文件(尤其是错误日志)是排查问题的关键。首先,我们需要查看MySQL的错误日志。错误日志通常位于MySQL数据目录下,文件名为`hostname.err`(hostname为主机名),或者可以通过MySQL配置文件(my.ini)中的`log-error`选项查看其位置。根据引用[3],错误日志记录MySQL服务的启动、运行或停止时出现的问题,因此它应该包含导致启动失败的具体错误信息。由于用户已经提供了日志信息(虽然问题中没有具体给出,但我们可以假设在后续分析中会用到),我们将基于常见的导致错误1067的原因进行分析。常见原因包括:1.配置文件(my.ini)问题:如配置错误、路径错误等。2.数据目录或文件权限问题:MySQL服务账户没有足够的权限访问数据目录或文件。3.端口冲突:其他进程占用了MySQL的端口(默认3306)。4.内存不足:系统内存不足导致MySQL无法启动。5.损坏的表或日志文件:如InnoDB日志文件损坏。6.与WindowsServer2019的兼容性问题:虽然MySQL5.6官方支持WindowsServer,但在新系统上可能存在兼容性问题。解决方案步骤:1.定位错误日志:首先找到错误日志文件的位置,查看具体的错误信息。2.检查配置文件:确保my.ini中的配置正确,特别是数据目录(datadir)、端口(port)、日志文件路径等。3.检查权限:确保MySQL服务账户(通常是NetworkService或自定义账户)对数据目录和日志目录有完全控制权限。4.检查端口冲突:使用`netstat-ano`命令检查3306端口是否被占用。5.检查内存:确保系统有足够的内存。6.修复损坏的文件:如果是InnoDB损坏,可以尝试删除ib_logfile0和ib_logfile1(删除前备份),然后重启MySQLMySQL会重建这些文件。或者使用`innodb_force_recovery`选项启动进行恢复。7.更新或重新安装:如果问题依旧,考虑升级到MySQL更高版本(如5.7或8.0)或重新安装MySQL5.6。由于用户提供了日志信息,我们应首先分析日志中的具体错误消息。假设在错误日志中我们看到了类似以下的错误:```[ERROR]InnoDB:Thesystemtablespacemustbewritable![ERROR]Plugin&#39;InnoDB&#39;initfunctionreturnederror.[ERROR]Plugin&#39;InnoDB&#39;registrationasaSTORAGEENGINEfailed.[ERROR]Unknown/unsupportedstorageengine:InnoDB[ERROR]Aborting```这表明InnoDB引擎初始化失败,可能是由于系统表空间(如ibdata1)的权限问题或文件损坏。解决方案:-检查ibdata1文件(位于数据目录)的权限,确保MySQL服务账户有读写权限。-如果文件损坏,可能需要从备份恢复,或者尝试使用`innodb_force_recovery`。另一种常见错误是:```[ERROR]Can&#39;topenthemysql.plugintable.Pleaserunmysql_upgradetocreateit.```这时,需要运行mysql_upgrade工具。如果错误日志中没有足够信息,我们可以尝试手动启动MySQL服务并查看控制台输出:1.打开命令提示符(以管理员身份)。2.切换到MySQL的bin目录,例如:`cdC:\ProgramFiles\MySQL\MySQLServer5.6\bin`。3.运行:`mysqld--console`这将在前台启动MySQL,并将日志输出到控制台,可以更直观地看到错误。注意:在WindowsServer2019上,可能还需要考虑:-安装必要的运行库(如VisualC++Redistributable)。-确保防火墙没有阻止MySQL。如果用户提供了具体的日志内容,我们可以进一步分析。但在此,我们先给出一般性的分析步骤。最后,建议用户按照以下步骤操作:1.检查错误日志,定位具体错误。2.根据错误信息采取相应措施。3.如果无法解决,提供具体的错误日志内容以便深入分析。由于用户问题中要求附带提供的MySQL日志信息,但实际提问中并未给出日志内容,因此我们只能给出一般性的原因和解决方案。如果用户能提供错误日志中的关键错误信息,我们可以更精确地定位问题。相关问题:1.如何配置MySQL的错误日志路径?2.MySQL服务启动失败的其他常见错误代码有哪些?3.如何在WindowsServer2019上重新安装MySQL5.6?</think>### MySQL 5.6 在 Windows Server 2019 上启动报错 1067 的原因分析及解决方案 错误 1067 表示 MySQL 服务进程意外终止。结合 MySQL 日志(尤其是错误日志)分析,以下是常见原因及解决方案: --- #### **一、核心原因分析** 1. **配置文件错误** - `my.ini` 配置错误(如路径无效、参数冲突) - 关键参数示例: ```ini [mysqld] basedir="C:/Program Files/MySQL/MySQL Server 5.6" # MySQL安装目录 datadir="C:/ProgramData/MySQL/MySQL Server 5.6/Data" # 数据目录 port=3306 # 端口配置 ``` 2. **文件权限问题** - MySQL 服务账户(默认 `NETWORK SERVICE`)**无权限访问数据目录** - 日志文件提示示例: `[ERROR] Can&#39;t open file &#39;.\mysql\user.frm&#39; (errno: 13)` 3. **端口冲突** - 其他进程占用 3306 端口(如其他 MySQL 实例) - 日志提示:`[ERROR] Do you already have another mysqld server running on port: 3306 ?` 4. **InnoDB 引擎故障** - 表空间文件损坏(如 `ibdata1` 或 `ib_logfile*`) - 日志提示: `[ERROR] InnoDB: .\ibdata1 can&#39;t be opened in read-write mode` `[ERROR] Plugin &#39;InnoDB&#39; init function returned error` 5. **兼容性问题** - Windows Server 2019 的权限策略或驱动与 MySQL 5.6 冲突 --- #### **二、解决方案步骤** ##### **步骤1:检查错误日志定位根源** - 日志路径:`%PROGRAMDATA%\MySQL\MySQL Server 5.6\data\<主机名>.err` - **关键操作**: ```bash # 在命令提示符中运行(管理员权限) mysqld --console ``` 此时会实时输出错误信息到控制台,便于快速诊断[^3]。 ##### **步骤2:修复配置文件** - 验证 `my.ini` 路径: 默认位置 `%PROGRAMDATA%\MySQL\MySQL Server 5.6\my.ini` - **检查重点**: - `basedir` 和 `datadir` 路径是否正确(需用正斜杠 `/`) - 移除重复参数或冲突设置(如 `innodb_force_recovery` 与其他参数冲突) ##### **步骤3:修复文件权限** 1. 右键点击 **数据目录**(如 `C:\ProgramData\MySQL\MySQL Server 5.6\Data`)→ **属性 → 安全** 2. 添加 `NETWORK SERVICE` 账户并赋予 **完全控制权限** 3. 对 `ibdata1`、`ib_logfile0` 等文件单独检查权限[^3]。 ##### **步骤4:处理端口冲突** - 检查端口占用: ```bash netstat -ano | findstr :3306 ``` - 终止占用进程或修改 `my.ini` 中的 `port` 参数。 ##### **步骤5:修复 InnoDB 表空间** - **方法1**:删除损坏的日志文件(**先备份**) 移除 `ib_logfile0`、`ib_logfile1`,重启 MySQL 自动重建。 - **方法2**:强制恢复模式(**谨慎使用**) 在 `my.ini` 添加: ```ini [mysqld] innodb_force_recovery=1 # 尝试1~6级别,成功后需导出数据并重建实例 ``` ##### **步骤6:兼容性调整** - 以兼容模式运行: 1. 右键点击 `mysqld.exe`(位于 `bin` 目录)→ **属性 → 兼容性** 2. 勾选 **以兼容模式运行** → 选择 **Windows 7** 3. 勾选 **以管理员身份运行**。 --- #### **三、预防措施** 1. **定期备份日志**:监控错误日志避免问题积累[^2][^3]。 2. **权限最小化**:为 MySQL 服务账户单独创建低权限用户。 3. **版本升级**:考虑升级到 MySQL 5.7+ 或 MySQL 8.0 以获得更好的 Windows Server 2019 支持。 > **重要提示**:操作前务必备份 `data` 目录和配置文件。若问题持续,提供完整的错误日志内容可进一步精准分析。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值