随笔分类 -  MySQL

摘要:1. 修改配置文件 vim /etc/my.cnf 在 [mysqld] 中添加 skip-grant-tables 2. 重启 mysql 服务service mysql restartservice mysqld restart 3. 登录 mysqlmysql -u root或mysql -u 阅读全文
posted @ 2019-10-11 20:31 ytymz 阅读(901) 评论(0) 推荐(0)
摘要:如下图为多索引,有联合索引 timestamp 和 txid 做为单个关键字段查询有效。 timestamp 和 txid 联合查询时,则联合索引 txid, timestamp, input_total 有效。 联合索引居左有效 举例 txid, timestamp, input_total 当查 阅读全文
posted @ 2019-09-18 14:07 ytymz 阅读(1651) 评论(0) 推荐(0)
摘要:操作:执行 alter table aa_table drop column hehe; 删除 aa_table 表中 hehe 字段。导致 ERROR 1114 (HY000): The table 'sy_transaction_info' is full。 删除字段操作,磁盘可以空间需要大于表 阅读全文
posted @ 2019-09-16 12:04 ytymz 阅读(15739) 评论(0) 推荐(1)