分类 数据库-Mysql 中的文章

Mysql 013表结构变更

当前mysql最大的记录数是7亿级 Executing: 1 2 3 4 ALTER TABLE `live_http_origin`.`o_xylive_flashsdk_one_20170414` ADD COLUMN `httpdns_resptime` DOUBLE NULL AFTER `httpdns_time`, ADD COLUMN `httpdns_clientip` VARCHAR(45) NULL AFTER `httpdns_resptime`, ADD COLUMN `httpdns_host` VARCHAR(200) NULL AFTER `httpdns_clientip`; 杀死my……

阅读全文

Mysql 012mysql锁相关

information_schema.partitions 表的分区信息 information_schema.processlist 客户端连接信息 information_schema.innodb_trx 当前运行的所有事务 information_schema.innodb_locks 当前出现的锁 information_schema.innodb_lock_waits 锁等待的对应关系 查询发生锁等待占有……

阅读全文

Mysql 011安装指南

一、安装mysql下载包 mysql5.7 centos7:https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm mysql5.7 centos6:https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm mysql5.6 centos7:https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm mysql5.6 centos6:https://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm 二、安装过程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24……

阅读全文

Mysql 009mysql安装配置

# This config is for: 64G, 2 * 6 physical cores with 24 threads [client] port = 3306 socket = /dev/shm/mysql.sock default-character-set = utf8 [mysqld_safe] basedir = /usr open-files-limit = 32000 user = mysql [mysqld] port = 3306 socket = /dev/shm/mysql.sock basedir = /usr datadir = /usr/local/mysql/data pid-file = /usr/local/mysql/data/mysqld.pid……

阅读全文