Loading

03 2020 档案

摘要:root@localhost [mytest]>select * from INFORMATION_SCHEMA.INNODB_TRX WHERE TRX_MYSQL_THREAD_ID = connection_id()\G; *************************** 1. row 阅读全文
posted @ 2020-03-26 19:13 李行行 阅读(366) 评论(0) 推荐(0) 编辑
摘要:select table_schema, table_name from information_schema.tables where table_name not in (select distinct table_name from information_schema.columns whe 阅读全文
posted @ 2020-03-20 19:43 李行行 阅读(3408) 评论(0) 推荐(0) 编辑
摘要:mysql在5.6版本之后,就可以将undo表空间从系统表空间分离出来。如果在初始化mysql的时候,/etc/my.cnf文件中,并没有指定innodb_undo_tablespaces的数量,那么默认情况undo就是存放在系统表空间中。初始化成功之后,尝试修改innodb_undo_tables 阅读全文
posted @ 2020-03-17 09:55 李行行 阅读(2510) 评论(0) 推荐(0) 编辑
摘要:方式一: root@localhost [mytest]>create table ts30(id int) DATA DIRECTORY='/test/'; Query OK, 0 rows affected (0.18 sec) 这种方式仅仅是创建了一个单表单表空间 方式二: root@loca 阅读全文
posted @ 2020-03-16 23:13 李行行 阅读(1180) 评论(0) 推荐(1) 编辑
摘要:学习如何判断mysql 线程IO的过程中,发现mysql performance_schema库为空。没有数据,无法对照iotop来判断mysql各个线程的IO情况 经过网上查找资料,发现performance_schema默认是off,没有打开的 通过修改/etc/my.cnf配置文件,设置per 阅读全文
posted @ 2020-03-15 10:51 李行行 阅读(837) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up dark_mode palette
选择主题