随笔分类 - mysql
摘要:MySQL的读写分离与主从同步数据一致性 - windpoplar - 博客园 https://www.cnblogs.com/windpoplar/p/11978742.html MySQL的读写分离与主从同步数据一致性 有没有做MySQL读写分离?如何实现mysql的读写分离?MySQL主从复制
阅读全文
摘要:url 在表中具有唯一性; 由于定时任务的多进程/代码的多线程/定时任务的调度/脚本的执行时间,导致,破坏了唯一性; SELECT COUNT(1) FROM test_error_tmpUNION ALL SELECT COUNT(DISTINCT url) FROM test_error_tmp
阅读全文
摘要:https://dev.mysql.com/doc/refman/5.7/en/show-processlist.html SHOW PROCESSLIST shows you which threads are running. You can also get this information
阅读全文
摘要:实践: 1、 set GLOBAL max_connections=2048;show status like '%connections%'; 0-连接数不够:软件,增大max_connections; 1-系统资源不足:硬件,file descriptors 不足,改善硬件 MySQL :: M
阅读全文
摘要:SHOW VARIABLES LIKE '%connection%'; character_set_connection utf8mb4collation_connection utf8mb4_general_ciextra_max_connections max_connections 1250m
阅读全文
摘要:https://dev.mysql.com/doc/refman/5.6/en/account-management-sql.html USE mysql; SELECT Host,User FROM user; 【BUG】CREATE USER 'xx'@'%' IDENTIFIED BY 'yy
阅读全文
摘要:The basic principle of test case evaluation is that output resulting from running a test case is compared to the expected result. https://dev.mysql.co
阅读全文
摘要:https://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqlj18922.html INNER JOIN operation Specifies a join between two tables with an explicit join clause.
阅读全文
摘要:
阅读全文
摘要:w 分类 统计 去重 SELECT MIN(id) as min_id ,COUNT(1) AS c FROM parent_url_copy GROUP BY CONCAT(page_url,children_url)
阅读全文
摘要:w https://dev.mysql.com/doc/refman/5.7/en/comments.html MySQL 5.7 Reference Manual / Language Structure / Comment Syntax 10.6 Comment Syntax MySQL Ser
阅读全文
摘要:w https://www.percona.com/blog/2007/04/10/count-vs-countcol/
阅读全文
摘要:https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_page_size https://dev.mysql.com/doc/refman/5.7/en/innodb-file-space.html 15.12.2 File Space
阅读全文
摘要:w https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html MySQL enables client sessions to acquire table locks explicitly for the purpose of cooperat
阅读全文
摘要:w MySQL :: MySQL 5.7 Reference Manual :: 9.2.1.19 Avoiding Full Table Scanshttps://dev.mysql.com/doc/refman/5.7/en/table-scan-avoidance.html
阅读全文
摘要:w 字段类型设置错误 有限元的判断,勿用枚举行。 MySQL :: MySQL 5.7 Reference Manual :: 12.4.4 The ENUM Typehttps://dev.mysql.com/doc/refman/5.7/en/enum.html We strongly reco
阅读全文
摘要:w MySQL大表优化方案 - 码农 - SegmentFaulthttps://segmentfault.com/a/1190000006158186
阅读全文