当前位置:网站首页>After reading "MySQL Database Advanced Practice" (SQL Xiao Xuzhu)
After reading "MySQL Database Advanced Practice" (SQL Xiao Xuzhu)
2022-07-31 01:43:00 【Wanli Yangtze River Snow】
About the author: Hello everyone, I am.High-quality creators in the Java field??, CSDN blog experts??, Huawei Cloud Sharing experts??, Nuggets annual popular author??, Alibaba Cloud expert blogger??
Technical work, the reward
Like ?? Favorite, watch again, form a habit
Add me WeChat on the left side of the PC terminal, join the community, send books and more!
Foreword
Brother Xu Zhu recently wrote a technical column on database. When he wants to export good technical knowledge, he also needs to input continuously.
This "MySQL Database Advanced Practice" is the book that Brother Xuzhu is reading recently, and I want to share it with fans.
Introduction
The author of "MySQL Database Advanced Practice" is Zhao Yuqiang, who graduated from Tsinghua University with a major in computer software engineering and has nearly 20 years of experience in the IT industry.He has worked as a senior software architect or consultant in Fortune 500 companies such as BEA, Oracle, and Motorola.At the same time, he is also the former dean of the Big Data College of Jingdong University, and a proper technology boss.
The title of this book will be mistaken for an advanced database study book. In fact, it is a technical route to learn database, including all aspects involved in MySQL database, from entry to advanced, one road arrangement.
The focus is on the new of this book, the first aspect: this book is based on MySQL version 8.0.mysql download portal
These two aspects are the new of the publication time: published on 2022-08-01, Brother Xuzhu is fortunate to be able to read this book in advance, the first batch of people who eat crabs, one word, fragrant~
Interested fans, you can buy it and see: "MySQL Database Advanced Practice" - Book
Theme
"MySQL Database Advanced Practice" What's so good about this book?Focus on MySQL database and write it based on MySQL 8.0 version, give a comprehensive and in-depth explanation of the relevant knowledge of MySQL database, and supplement it with actual combat.
At the same time, this book is also a technical route for learning databases, systematically introducing MySQL, the most popular technology representative in the field of open source relational databases, and covering all aspects of MySQL database.Strive to cover the core content of MySQL in one book, including the following 12 parts.
Features
This book is suitable for platform architects, operation and maintenance managers and project developers who are interested in MySQL database technology.Regardless of whether the reader has contacted database technology or not, as long as he has basic Linux and SQL knowledge, he can quickly master MySQL and improve practical experience through this book.
Content Sharing
This book focuses on practical combat. How to say it, I will give a practical case in the book: how to use slow query logs.
Practical case: how to use slow query log
The slow query log can record all SQL statements that exceed the parameter long_query_time time to help DBA personnel optimize problematic SOL statements.
Simply put, after opening the slow query log, you can find sql statements whose query time exceeds 3 seconds. The 3 seconds here is configured by the parameter long_query_time and can be customized.
Step 1:
Check whether the slow query log is enabled
mysql> show variables like 'slow_query%';
Parameter description:
slow_query_log Slow query enable status (OFF: OFF; ON: ON)
slow_query_log_file The location where the slow query log is stored (this directory requires the write permission of the MySQL running account, generally set to MySQLThe data storage directory)
Step 2:
long_query_time How many seconds to query before recording (default is 10s)
show variables like 'long_query_time'
Step 3:
Enable slow query logSetting method
Method 1: Global variable setting
Set the slow_query_log global variable to "ON" state
set global slow_query_log='ON';
Set the location where the slow query log is stored
set global slow_query_log_file='/usr/local/mysql/data/slow.log';
Set the log for longer than the parameter long_query_time
set global long_query_time=3;
With the above settings, as long as the query time exceeds 3 seconds, the sql statement will be recorded in the log.The DBA or developer can optimize according to the SQL statement recorded in the log.
Summary
Brother Xuzhu prefers to read practical technical books. These kinds of books don't look boring. Every time you read a practical case, you can get positive feedback.
This is the end of this sharing. Brother Xuzhu is going to write the technical column of the database. Goodbye everyone.
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
934. 最短的桥
Teach you how to configure Jenkins automated email notifications
coldfusion8后台计划任务拿shell
一个无经验的大学毕业生,可以转行做软件测试吗?我的真实案例
Distributed. Idempotency
The sword refers to offer17---print the n digits from 1 to the largest
case语句的综合结果,你究竟会了吗?【Verilog高级教程】
VS warning LNK4099: No solution found for PDB
MySQL (6)
《MySQL数据库进阶实战》读后感(SQL 小虚竹)
随机推荐
Distributed. Distributed lock
Meta元宇宙部门第二季度亏损28亿 仍要继续押注?元宇宙发展尚未看到出路
Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
coldfusion8后台计划任务拿shell
Ticmp - 更快的让应用从 MySQL 迁移到 TiDB
蛮力法/邻接表 广度优先 有向带权图 无向带权图
Multiplication, DFS order
Xiaohei's leetcode journey: 117. Fill the next right node pointer of each node II
leetcode-399:除法求值
进程间通信学习笔记
ROS Action communication
手把手教你配置Jenkins自动化邮件通知
87. 把字符串转换成整数
内网渗透——提权
Google官方控件ShapeableImageView使用
I have been working in software testing for 3 years, how did I go from just getting started to automated testing?
两个有序数组间相加和的Topk问题
《实战》基于电商领域的词性提取及其决策树模型建模
leetcode-128:最长连续序列
ROS Action通信