mysql 重启_mysql重启的问题

一.问题描述

今天直接重启了用户中心库的mysql进程,数据库起来后,一直报错Too many connections。机器负载飙升到100了。

登陆到mysql中,发现很多连接的状态都是logging slow query,分析慢查询日志,发现那段时间内慢查询有7万多。

二.原因分析

应该是数据库重启后,需要重装装载数据到内存中,导致所有的语句执行都很慢,这样就堆积了很多请求,最后超过了最多连接数。

运行个10分钟左右,等热点数据都装载到内存了,数据库请求就恢复正常了。

如果把慢查询的时间设置为1s,不知道是否还会出现logging slow query 状态的sql?

对于以后类似的操作,要评估一下buffer 重建的时间,buffer设置过大也会导致重启所需的时间更长。

三.附上show processlist相关的状态

Show processlist

在Show processlist输出中的Status项:5.1手册中没有的或者翻译有问题的,都附带5.5原文说明:

After create

This occurs when the thread creates a table (including internal temporary tables), at the end of the function that creates the table. This state is used even if the table could not be created due to some error.

这个状态当线程创建一个表(包括内部临时表)时,在这个建表功能结束时出现。即使某些错误导致建表失败,也会使用这个状态。

Analyzing

The thread is calculating a MyISAM table key distributions (for example, for ANALYZE TABLE).

当计算MyISAM表索引分布时。(比如进行ANALYZE TABLE时)

checking permissions

The thread is checking whether the server has the required privileges to execute the statement.

这个线程检查服务器是否有具有执行该语句的所需权限。

Checking table

The thread is performing a table check operation.

线程正在执行表检查操作。

cleaning up

The thread has processed one command and is preparing to free memory and reset certain state variables.

线程处理一个命令,并正准备释放内存和重置某些状态变量。

closing tables

The thread is flushing the changed table data to disk and closing the used tables. This should be a fast operation. If not, verify that you do not have a full disk and that the disk is not in very heavy use.

线程正在将变更的表中的数据刷新到磁盘上并正在关闭使用过的表。这应该是一个快速的操作。如果不快,则应该检查硬盘空间是否已满或者硬盘IO是否达到瓶颈。

converting HEAP to MyISAM

The thread is converting an internal temporary table from a MEMORY table to an on-disk MyISAM table.

线程将一个内部临时表转换为磁盘上的MyISAM表。

copy to tmp table

The thread is processing an ALTER TABLE statement. This state occurs after the table with the new structure has been created but before rows are copied into it.

线程正在处理一个ALTER TABLE语句。这个状态发生在新的表结构已经创建之后,但是在数据被复制进入之前。

Copying to group table

If a statement has different ORDER BY and GROUP BY criteria, the rows are sorted by group and copied to a temporary table.

如果一个语句有不同的ORDER BY和GROUP BY条件,数据会被复制到一个临时表中并且按组排序。

Copying to tmp table

The server is copying to a temporary table in memory.

线程将数据写入内存中的临时表。

Copying to tmp table on disk

The server is copying to a temporary table on disk. The temporary result set has become too large (see Section 8.4.3.3, “How MySQL Uses Internal Temporary Tables”). Consequently, the thread is changing the temporary table from in-memory to diskbased format to save memory.

线程正在将数据写入磁盘中的临时表。临时表的结果集过大(大于tmp_table_size)。所以,线程将临时表由基于内存模式改为基于磁盘模式,以节省内存。

Creating index

The thread is processing ALTER TABLE ... ENABLE KEYS for a MyISAM table.

线程正在对一个MyISAM表执行ALTER TABLE ... ENABLE KEYS语句。

Creating sort index

The thread is processing a SELECT that is resolved using an internal temporary table.

线程正在使用内部临时表处理一个SELECT 操作。

creating table

The thread is creating a table. This includes creation of temporary tables.

线程正在创建一个表,包括创建临时表。

Creating tmp table

The thread is creating a temporary table in memory or on disk. If the table is created in memory but later is converted to an ondisk table, the state during that operation will be Copying to tmp table on disk.

线程正在创建一个临时表在内存或者磁盘上。如果这个表创建在内存上但是之后被转换到磁盘上,这个状态在运行Copying to tmp table on disk 的时候保持。

deleting from main table

The server is executing the first part of a multiple-table delete. It is deleting only from the first table, and saving columns and offsets to be used for deleting from the other (reference) tables.

线程正在执行多表删除的第一部分,只从第一个表中删除。并且保存列和偏移量用来从其他(参考)表删除。

deleting from reference tables

The server is executing the second part of a multiple-table delete and deleting the matched rows from the other tables.

线程正在执行多表删除的第二部分,并从其他表中删除匹配的行。

discard_or_import_tablespace

The thread is processing an ALTER TABLE ... DISCARD TABLESPACE or ALTER TABLE ... IMPORT TABLESPACE statement.

线程正在执行ALTER TABLE ... DISCARD TABLESPACE 或 ALTER TABLE ... IMPORT TABLESPACE语句。

end

This occurs at the end but before the cleanup of ALTER TABLE, CREATE VIEW, DELETE, INSERT, SELECT, or UPDATE statements.

这个状态出现在结束时,但是在对ALTER TABLE, CREATE VIEW, DELETE, INSERT, SELECT, 或者 UPDATE 语句进行清理之前。

executing

The thread has begun executing a statement.

该线程已开始执行一条语句。

Execution of init_command

The thread is executing statements in the value of the init_command system variable.

线程正在执行处于init_command系统变量的值中的语句。

freeing items

The thread has executed a command. Some freeing of items done during this state involves the query cache. This state is usually followed by cleaning up.

线程已经执行了命令。在这个状态中涉及的查询缓存可以得到一些释放。这个状态通常后面跟随cleaning up状态。

Flushing tables

The thread is executing FLUSH TABLES and is waiting for all threads to close their tables.

线程正在执行FLUSH TABLES 并且等待所有线程关闭他们的表。

FULLTEXT initialization

The server is preparing to perform a natural-language full-text search.

服务器正在准备进行自然语言全文检索。

init

This occurs before the initialization of ALTER TABLE, DELETE, INSERT, SELECT, or UPDATE statements. Actions taken by the server in this state include flushing the binary log, the InnoDB log, and some query cache cleanup operations.

For the end state, the following operations could be happening:

? Removing query cache entries after data in a table is changed

? Writing an event to the binary log

? Freeing memory buffers, including for blobs

这个状态出现在线程初始化ALTER TABLE, DELETE, INSERT, SELECT, 或 UPDATE语句之前。服务器在这种状态下进行的操作,包括:刷新全日志、Innodb日志,和一些查询缓存清理操作。

对于end状态,可能会发生下列操作:

在表中的数据变更之后移除查询缓存。

将事务写入全日志。

释放内存缓冲区,包括大的二进制数据块。

Killed

Someone has sent a KILL statement to the thread and it should abort next time it checks the kill flag. The flag is checked in each major loop in MySQL, but in some cases it might still take a short time for the thread to die. If the thread is locked by some other thread, the kill takes effect as soon as the other thread releases its lock.

程序对线程发送了KILL语句,并且它应该放弃下一次对KILL标记的检查。这个标记在每一个MySQL的主要循环中被检查,但在某些情况下,它可能需要令线程在很短的时间内死亡。如果这个线程被其他线程锁住了,这个KILL操作会在其他线程释放锁的瞬时执行。

Locked

The query is locked by another query.

As of MySQL 5.5.3, this state was removed because it was equivalent to the Table lock state and no longer appears in SHOW PROCESSLIST output.

这个查询被其他查询锁住了。

在MySQL 5.5.3版本,这个状态被移除了。因为它相当于表锁状态,并且不再出现在SHOW PROCESSLIST输出中。

logging slow query

The thread is writing a statement to the slow-query log.

这个线程正在将语句写入慢查询日志。

NULL

This state is used for the SHOW PROCESSLIST state.

没有操作的状态。

login

The initial state for a connection thread until the client has been authenticated successfully.

线程连接的初始状态。直到客户端已经成功验证。

manage keys

The server is enabling or disabling a table index.

服务器启用或禁用表索引。

Opening tables, Opening table

The thread is trying to open a table. This is should be very fast procedure, unless something prevents opening. For example, an ALTER TABLE or a LOCK TABLE statement can prevent opening a table until the statement is finished. It is also worth checking that your table_open_cache value is large enough.

线程正试图打开一张表。这应该是非常快的过程,除非打开受到阻止。一个ALTER TABLE 或LOCK TABLE语句能够阻止打开一张表直到语句运行结束。有必要检查table_open_cache的值是否足够大。

optimizing

The server is performing initial optimizations for a query.

服务器执行查询的初步优化。

preparing

This state occurs during query optimization.

在查询优化过程中出现这个状态。

Purging old relay logs

The thread is removing unneeded relay log files.

线程正在移除不必要的中继日志文件。

query end

This state occurs after processing a query but before the freeing items state.

这个状态出现在处理一个查询之后,但是在freeing items状态之前。

Reading from net

The server is reading a packet from the network.

服务器正在从网络阅读数据包。

Removing duplicates

The query was using SELECT DISTINCT in such a way that MySQL could not optimize away the distinct operation at an early stage. Because of this, MySQL requires an extra stage to remove all duplicated rows before sending the result to the client.

查询正在使用SELECT DISTINCT,这种情况下MySQL不能在早期阶段优化掉一些distinct操作。因此,MySQL需要一个额外的阶段,在将结果发送到客户端之前删除所有重复的行。

removing tmp table

The thread is removing an internal temporary table after processing a SELECT statement. This state is not used if no temporary table was created.

线程正在移除一个内置临时表,在执行一条SELECT语句之后。 如果没有临时表产生,那么这个状态不被使用。

rename

The thread is renaming a table.

线程正在重命名一张表。

rename result table

The thread is processing an ALTER TABLE statement, has created the new table, and is renaming it to replace the original table.

线程正在处理ALTER TABLE语句,创建新的表,并且重命名它来代替原有的表。

Reopen tables

The thread got a lock for the table, but noticed after getting the lock that the underlying table structure changed. It has freed the lock, closed the table, and is trying to reopen it.

线程获得了表锁,但是在取得表锁之后才发现该表的底层结构已经发生了变化。线程释放这个锁,关闭表,并试图重新打开该表。

Repair by sorting

The repair code is using a sort to create indexes.

修复代码正在使用一个分类来创建索引。

Repair done

The thread has completed a multi-threaded repair for a MyISAM table.

线程完成一个多线程的MyISAM表的修复。

Repair with keycache

The repair code is using creating keys one by one through the key cache. This is much slower than Repair by sorting.

修复代码正在通过索引缓存一个接一个地使用创建索引。这比通过分类修复要慢很多。

Rolling back

The thread is rolling back a transaction.

线程正在回滚一个事务

Saving state

For MyISAM table operations such as repair or analysis, the thread is saving the new table state to the .MYI file header. State includes information such as number of rows, the AUTO_INCREMENT counter, and key distributions.

对于MyISAM表的类似repair或analysis操作,线程在.MYI文件的头部保存一个新表的状态。状态信息包括行数、自增数、索引分布等等。

Searching rows for update

The thread is doing a first phase to find all matching rows before updating them. This has to be done if the UPDATE is changing the index that is used to find the involved rows.

线程正在进行第一阶段,在更新前寻找所有匹配的行。如果update正在更改用于查找相关行的索引,则必须这么做。

Sending data

The thread is reading and processing rows for a SELECT statement, and sending data to the client. Because operations occurring during this this state tend to perform large amounts of disk access (reads), it is often the longest-running state over the lifetime of a given query.

线程正在读取和处理一条SELECT语句的行,并且将数据发送至客户端。由于在此期间会执行大量的磁盘访问(读操作),这个状态在一个指定查询的生命周期中经常是耗时最长的。

setup

The thread is beginning an ALTER TABLE operation.

线程正开始进行一个ALTER TABLE操作。

Sorting for group

The thread is doing a sort to satisfy a GROUP BY.

线程正在执行一个由GROUP BY指定的排序。

Sorting for order

The thread is doing a sort to satisfy a ORDER BY.

线程正在执行一个由ORDER BY指定的排序。

Sorting index

The thread is sorting index pages for more efficient access during a MyISAM table optimization operation.

线程正在对索引页进行排序,为了对MyISAM表进行操作时获得更优的性能。

Sorting result

For a SELECT statement, this is similar to Creating sort index, but for nontemporary tables.

对于一个SELECT语句,这与创建排序索引相似,但是是对非临时表。

statistics

The server is calculating statistics to develop a query execution plan. If a thread is in this state for a long time, the server is probably disk-bound performing other work.

服务器计算统计去规划一个查询。如果一个线程长时间处于这个状态,这个服务器的磁盘可能在执行其他工作。

System lock

The thread is going to request or is waiting for an internal or external system lock for the table. If this state is being caused by requests for external locks and you are not using multiple mysqld servers that are accessing the same MyISAM tables, you can disable external system locks with the --skip-external-locking option. However, external locking is disabled by default, so it is likely that this option will have no effect. For SHOW PROFILE, this state means the thread is requesting the lock

(not waiting for it).

这个线程正在请求或者等待一个内部的或外部的系统表锁。如果这个状态是由于外部锁的请求产生的,并且你没有使用多个正在访问相同的表的mysqld服务器,那么你可以使用--skip-external-locking选项禁用外部系统锁。然而,外部系统锁默认情况下禁用,因此这个选项可能不会产生效果。对于SHOW PROFILE,这个状态意味着线程正在请求锁。(而非等待)

Table lock

The next thread state after System lock. The thread has acquired an external lock and is going to request an internal table lock.

This state was replaced in MySQL 5.5.6 with Waiting for table level lock.

系统锁定后的下一个线程状态。线程已获得外部锁并且将请求内部表锁。

这个状态在MySQL 5.5.6版本中被Waiting for table level lock取代。

Updating

The thread is searching for rows to update and is updating them.

线程寻找更新匹配的行并进行更新。

updating main table

The server is executing the first part of a multiple-table update. It is updating only the first table, and saving columns and offsets to be used for updating the other (reference) tables.

线程正在执行多表更新的第一部分,只从第一个表中更新。并且保存列和偏移量用来从其他(参考)表更新。

updating reference tables

The server is executing the second part of a multiple-table update and updating the matched rows from the other tables.

线程正在执行多表更新的第二部分,并从其他表中更新匹配的行。

User lock

The thread is going to request or is waiting for an advisory lock requested with a GET_LOCK() call. For SHOW PROFILE, this state means the thread is requesting the lock (not waiting for it).

线程正在请求或等待一个GET_LOCK()调用所要求的咨询锁。对于SHOW PROFILE,这个状态意味这线程正在请求锁。(而非等待)

User sleep

The thread has invoked a SLEEP() call.

线程调用了一个SLEEP()。

Waiting for all running commits to finish

A statement that causes an explicit or implicit commit is waiting for release of a read lock. This state was removed in MySQL 5.5.8; Waiting for commit lock is used instead.

一个显式或隐式语句在提交时等待释放读锁。这个状态在MySQL 5.5.8版本中被移除,以Waiting for commit lock代替。

Waiting for commit lock

A statement that causes an explicit or implicit commit is waiting for release of a read lock or FLUSH TABLES WITH READ LOCK) is waiting for a commit lock. This state was added in MySQL 5.5.8.

同上,这个状态于MySQL 5.5.8版本加入。

Waiting for global read lock

FLUSH TABLES WITH READ LOCK) is waiting for a global read lock.

等待全局读锁。

Waiting for release of readlock

The thread is waiting for a global read lock obtained by another thread (with FLUSH TABLES WITH READ LOCK) to be released.This state was removed in MySQL 5.5.8; Waiting for global read lock or Waiting for commit lock are used instead.

等待释放读锁。

Waiting for tables, Waiting for table, Waiting for table flush

The thread got a notification that the underlying structure for a table has changed and it needs to reopen the table to get the new structure. However, to reopen the table, it must wait until all other threads have closed the table in question.

This notification takes place if another thread has used FLUSH TABLES or one of the following statements on the table in question: FLUSH TABLES tbl_name, ALTER TABLE, RENAME TABLE, REPAIR TABLE, ANALYZE TABLE, or OPTIMIZE TABLE.

In MySQL 5.5.6, Waiting for table was replaced with Waiting for table flush.

线程获得一个通知,底层表结构已经发生变化,它需要重新打开表来获取新的结构。然而,重新打开表,它必须等到所有其他线程关闭这个有问题的表。

这个通知产生通常因为另一个线程对问题表执行了FLUSH TABLES或者以下语句之一:FLUSH TABLES tbl_name, ALTER TABLE, RENAME TABLE, REPAIR TABLE, ANALYZE TABLE, or OPTIMIZE TABLE.

Waiting for lock_typelock

The server is waiting to acquire a lock, where lock_typeindicates the type of lock:

? Waiting for event metadata lock (added in MySQL 5.5.8)

? Waiting for global metadata lock (replaced by Waiting for global read lock in MySQL 5.5.8)

? Waiting for global read lock (added in MySQL 5.5.8)

? Waiting for schema metadata lock

? Waiting for stored function metadata lock

? Waiting for stored procedure metadata lock

? Waiting for table level lock

? Waiting for table metadata lock

? Waiting for trigger metadata lock (added in MySQL 5.5.8)

等待各个种类的表锁。

Waiting on cond

A generic state in which the thread is waiting for a condition to become true. No specific state information is available.

一个普通的状态,线程正在等待一个条件为真。没有特定的状态信息可用。

Waiting to get readlock

The thread has issued a FLUSH TABLES WITH READ LOCK statement to obtain a global read lock and is waiting to obtain the lock. This state was removed in MySQL 5.5.8; Waiting for global read lock is used instead.

线程发出了一个FLUSH TABLES WITH READ LOCK语句来获取一个全局读锁,并且等待获得这个锁。这个状态在MySQL 5.5.8被移除,使用Waiting for global read lock 来代替。

Writing to net

The server is writing a packet to the network.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/551054.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

android 滑动接听源码,android仿摩拜单车APP、炫酷RecyclerView、卡片滑动、仿饿了么点餐、自定义索引等源码...

Android精选源码Android优质博客前言permissions4m 最初的设计是仅仅做成一个编译器注解框架,在1.0.0版本时,它纯粹地实现了原生 Android 请求流程,关于它的设计思路可以查看这篇如何打造一个 Android 编译时注解框架。但是当投入笔者自己项目…

zip版mysql5.6_mysql 5.6 压缩包版安装方法

Mysql安装的时候可以有msi安装和zip解压缩两种安装方式。zip压缩包解压到目录,要使用它还需对它进行一定的配置。下面对Mysql压缩包版的安装方法进行详细的描述,要是此文有不正确的认识,希望大家指正,非常感谢。一、下载mysql压缩…

鸿蒙系统 产品,华为首款鸿蒙系统产品成行业公敌!只因开机无广告:遭十大品牌批评...

【4月6日讯】随着荣耀30s手机正式发布,全新的麒麟820处理器也是再次给我们带来了巨大惊喜,毫无疑问,麒麟820处理器将会继续继承麒麟810处理器的“神U”特质,成为5G网络时代的新一代中端“神U”,但在荣耀30s发布会上&am…

行列转换的帖子mysql_[转载]mysql行列转换方法总结  (转)

数据样本:create tabletx(id int primary key,c1 char(2),c2 char(2),c3 int);insert into txvalues(1 ,A1,B1,9),(2 ,A2,B1,7),(3 ,A3,B1,4),(4 ,A4,B1,2),(5 ,A1,B2,2),(6 ,A2,B2,9),(7 ,A3,B2,8),(8 ,A4,B2,5),(9 ,A1,B3,1),(10 ,A2,B3,8),(11 ,A3,B3,8),(12 ,A4…

mysql 查询一个月的时间_mysql日期查询sql语句总结(查询一天,查询一周,查询一个月的数据)...

我的日期首先我们获取到的日期格式是这样的:2009-2-12或者2009-3-3或者2009-10-12,我们在组合sql语句的时候可以这样:(分了三个例子)代码如下1select * from user where birthday>2009-2-3 and birthday这样我们能够查到所有包括2009-2-3并…

html在线摄像头,在HTML里加载摄像头的方法

效果图: 整体效果:视频加载:拍照:第一步:创建HTML元素首先,我们要创建一个HTML5的文档。无标题文档然后在插入以下代码:截图第二步:创建JavaScript首先,要在里创建一个JavaScript&am…

node mysql 跨库查询_nodejs 在mongodb在跨数据库之中如何进行关联起来查询,并且支持筛选关联表的条件进行查询...

"班级数据库": "mongodb://192.168.3.17/xxx"学生数据库": "mongodb://192.168.3.99/xxx (只读)使用 mongoose.createConnection 进行链接2个数据库classId 是唯一并且不会重复的。学生数据库是只读的,并且数量非常大,并随…

html5群组选择器,css选择器

基本选择器通配选择器选择器:*类型:通配选择器含义:选择文档中所有的HTML元素元素选择器选择器:E类型:元素选择器含义:选择指定类型的HTML元素ID选择器选择器:#ID类型:ID选择器含义&…

html风车相册代码,Css Html 大风车(示例代码)

简介这篇文章主要介绍了Css Html 大风车(示例代码)以及相关的经验技巧,文章约3675字,浏览量138,点赞数2,值得参考!div{ border-radius: 50%;position: absolute; }.red{border-top:100px solid red;border-right: 100p…

mysql 视图 教程_MySQL视图简介及基本操作教程

前言视图是数据库系统中一种非常有用的数据库对象。MySQL 5.0 之后的版本添加了对视图的支持。认识视图视图是一个虚拟表,其内容由查询定义。同真实表一样,视图包含一系列带有名称的列和行数据,但视图并不是数据库真实存储的数据表。视图是从…

计算机科学导论考试A卷试题,09级计算机科学导论A卷答案

《计算机科学导论》试卷A参考答案一、单选题:(每题1分,共30分)1~5 CBCCD 6~10 ABABC 11~15 DCCDD 16~20 BBBAC 21~25 DDCDC 26~30 ACABC二、填空题:(每空1分,共20分) 1.322.ROM RAM 3.地址4&…

java中连接mysql数据库_java中怎么连接mysql数据库

展开全部import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.text.SimpleDateFormat;import java.util.Date;public class JDBCMySQL {// 驱动程序就是之前在classpath中配置的jdbc的驱动程序的jar包中public static fi…

html文件打开多出很多数字,【求助】页面上显示几个数字,打开html的时候希望能滚动起来...

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼*{padding: 0;margin: 0;}div{width:60px;height:50px;border:1px solid red;overflow: hidden;position: relative;margin: 200px 400px;}ul{width:200px;height:20px;float:left;position: absolute;}li{width:10px;height:20px;…

word 转 html cms,Java 将Word文件转换为HTML格式文件

前言:在很多时候我们都需要到项目中导入word文档,但是后期再次在前段显示这个文档的时候前端往往需要的是html格式的,所以这个时候就会提出一个需求: 你们存文档的时候能不能存成html格式的? 于是这篇文章的内容就可以…

mysql 中函数如何转存_mysql 导入导出数据库以及函数、存储过程 【转】

MySQL常用导出数据命令:1.mysql导出整个数据库mysqldump -hhostname -uusername -ppassword databasename > backupfile.sqlmysqldump -hlocalhost -uroot hqgr> hqgr.sql (如果root用户没用密码可以不写-p,当然导出的sql文件你可以制定一个路…

1500度的近视能学计算机吗,1500度近视考驾照,近视多少度不能考驾照

情人眼里出西施,所以眼睛的地位真的无可替代,让我们认识了这个五彩缤纷的世界。但是也有一批深度近视的人群,他们也想像常人一样考取驾照,掌握这个社会的基本技能。有的人说近视1500度不能考取驾照,真的是这样吗&#…

mysql怎样实现先判断后联合_MYSQ创建联合索引,字段的先后顺序,对查询的影响分析...

MYSQ创建联合索引,字段的先后顺序,对查询的影响分析前言对于联合索引我们知道,在使用的时候有一个最左前缀的原则,除了这些呢,比如字段放置的位置,会不会对索引的效率产生影响呢?最左匹配原则联…

上海事业编制 计算机 待遇怎么样,事业单位情况

2010-09-12我们在公路系统工作,用工单位是事业单位编制,由上级部门批准招录下达指标。由于单位缺人,单位临时招录我们(不带指标),我们已工作八年,自2003-2009一直签订合同,2009年到期后至今未签订合同&…

mysql count count id_mysql 为什么count(*)快于count(id)

其实,挺正常的,count的用法大概有两个,不过一般大家不太注意:统计某个列( 俗称字段 )有多少个有效值,也就是值不是null的有多少个。统计记录有多少行,我背诵过的规则是这样的:当count()括弧的表…

如何修改操作系统运行服务器,如何设置Bios 最常见bios设置与修改详细图解教程...

平时我们在使用计算机的时候一般很少会接触到BIOS,很多人都是在安装操作系统时才接触到的,因为在使用光盘安装系统时需将计算机的BIOS设置为从光驱启动,在重装系统、设置硬盘模式以及一些特殊情况都需要进入bios里面,进行相关设置…