上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页
摘要: SELECT TABLE_NAME,DATA_LENGTH+INDEX_LENGTH,TABLE_ROWS FROM TABLES WHERE TABLE_SCHEMA='xx' AND TABLE_NAME='xxx' SELECTa.table_schema ,a.table_name ,con 阅读全文
posted @ 2022-07-13 14:47 不再犯错 阅读(84) 评论(0) 推荐(0) 编辑
摘要: delete from xx where smokevehicleid not in ( select t.max_id from (select max(smokevehicleid) as max_id from xxx group by smokeno) as t ); delete from 阅读全文
posted @ 2022-06-29 17:29 不再犯错 阅读(22) 评论(0) 推荐(0) 编辑
摘要: select * from information_schema.INNODB_TRX 如果数据库表不存在,提醒表已经存在可以进入mysql bin 目录执行 mysqladmin -uroot -pskyland -P3307 drop trafficflow143 表损坏可以先创建临时表 1. 阅读全文
posted @ 2022-06-23 00:04 不再犯错 阅读(322) 评论(0) 推荐(0) 编辑
摘要: mysqladmin 工具的使用格式: mysqladmin [option] command [command option] command ...... 参数选项: -c number 自动运行次数统计,必须和 -i 一起使用 -i number 间隔多长时间重复执行 0)每个两秒查看一次服务 阅读全文
posted @ 2022-06-22 22:22 不再犯错 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 突然收到MysqL报警,从库的数据库挂了,一直在不停的重启,打开错误日志,发现有张表坏了。innodb表损坏不能通过repair table 等修复myisam的命令操作。现在记录下解决过程,下次遇到就不会这么手忙脚乱了。 处理过程: 一遇到报警之后,直接打开错误日志,里面的信息:InnoDB: D 阅读全文
posted @ 2022-06-22 19:42 不再犯错 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: 命令摘要 mysqlcheck是用来 检查,分析,优化,修复表的。 mysqlcheck只有在数据库运行的状态下才可运行,意味着不用停止服务操作 mysqlcheck其实就是CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, OPTIMIZE TABLE的便捷操作集合 阅读全文
posted @ 2022-06-22 19:41 不再犯错 阅读(4740) 评论(0) 推荐(1) 编辑
摘要: 本机用的Navicat连mysql测试DB又连了正式DB,因为本地与正式要频繁操作所以都打开了很多查询,本来要DELETE删除测试DB的数据,没看清在正式环境执行了。共删除了325条数据,然后在网上找恢复数据的办法,一定要是DELETE删除的,如果用的是drop table删除表是没办法恢复的,具体 阅读全文
posted @ 2022-06-09 11:34 不再犯错 阅读(886) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_39811150/article/details/113154714 阅读全文
posted @ 2022-05-25 00:27 不再犯错 阅读(11) 评论(0) 推荐(0) 编辑
摘要: PUT vehicle?include_type_name=true{ "settings": { "number_of_shards": 1, "number_of_replicas": 1 }, "mappings": { "_doc": { "properties": { "VLPN": { 阅读全文
posted @ 2022-05-17 18:22 不再犯错 阅读(39) 评论(0) 推荐(0) 编辑
摘要: logstash-input-jdbc是logstash的一个插件,logstash和ElasticSearch还有kibana简称ELK,logtash作为数据的收集以及过滤的一环,其可以作为数据同步的一个中间件。首先是下载,这里在5.x的版本后,logstash-input-jdbc已经被集合在 阅读全文
posted @ 2022-05-17 15:15 不再犯错 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页