Solve the problem of MySQL reinstallation bitsCN.com
I recently encountered a problem of MySQL reinstallation at work. today I will record my solution process.
First of all, for some reason, I have to uninstall mysql and then reinstall mysql. no
I tried to speed up the query in the last two weeks and achieved some results. I solved some problems and wrote them down for future display. Since the company does not have a dedicated DBA, I am not very familiar with mysql databases, and the
Use mysqldumpslow to analyze and execute slow SQL statements mysqldump
BitsCN.com
Use mysqldumpslow to analyze and execute slow SQL statements
Mysqldumpslow-s c-t 10/var/log/mysql/mysql-slow.log
A function of MySQL database is to record slow SQL
Mysql server master/slave data synchronization bitsCN.com
Master-slave data synchronization for Mysql servers
Example: use server A as the Master server, and use server B1 and server B2 as the Slave server (Slave ),
How can we synchronize data
How to use commands to view the Mysql database size bitsCN.com
How to use commands to view the Mysql database size
1. enter the specified schema database (storing the information of other databases)
1
Use information_schema
2. query the size
We know that the MongoDB index is B-Tree, which is very similar to the MySQL index. So you should have heard of this suggestion: when creating an index, you should consider the sort operation and try to put the fields used by the sort operation
Methods for automatic windowsmysql backup bitsCN.com
Based on the methods in the previous article, add the batch processing command to implement automatic backup. The only difference is that the names of backup files in batch processing commands are
Use bitsCN.com for MySql _ database triggers
Use of triggers in the MySql database:
The trigger uses the SQL statement before or after insert/delete/update.
When creating a trigger, you must add the delimiter separator to write the trigger in the
Centosyum install mysql and set the password (64-bit machine) CentOS
BitsCN.com
Centos yum install mysql and set the password (64-bit machine)
Yum install mysql
Yum install mysql-server
Yum install mysql-devel
Chgrp-R mysql/var/lib/mysql
Chmod-R 77
Five ways for Mysql to view the version number: bitsCN.com
Five ways to view Mysql version
View version information
#1
Enter mysql in command line mode and you will see the start prompt.
Your MySQL connection id is 3
Server version: 5.1.69 Source
Use MySQLSlowLog to solve the problem of high usage of MySQLCPU bitsCN.com
Use MySQL Slow Log to solve the high CPU usage problem of MySQL
In a Linux VPS system, sometimes MySQL occupies a high CPU, resulting in a high system load. This is
Mysql simulated queue bitsCN.com
Mysql simulated queue
Java code
-- Initialize data
Drop table if exists t_msg_queues;
Create table t_msg_queues (
Msg_id bigint unsigned not null AUTO_INCREMENT,
Msg_content VARCHAR (255) not null,
Owner_thread_id
SQLMode and related problems bitsCN.com
SQL Mode and related issues
I. INTRODUCTION to Mysql SQL Mode
The MySQL server can work in different SQL modes and apply these modes to different clients in different ways. In this way, applications can
Slow query caused by incorrect MySQL prefix index bitsCN.com
Slow query caused by incorrect MySQL prefix index
The front-end time is related to a DB Project. alanc reports a query. using indexes is much slower than not using indexes. So I followed
Write a step in liunx to regularly delete mysql data bitsCN.com
Write a step in liunx to regularly delete mysql data first create a file directory mkdir myfile vi: create a file vi delradiusdata [html] vi is a common tool for creating and editing
Set bitsCN.com for multiple timestamps in mysql
The Default value of timestamp is Default CURRENT_TIMESTAMP.
The timestamp is set to automatically update on update CURRENT_TIMESTAMP as the table changes.
HoweverA table can have at most one
Mysql auto-increment id 0 method bitsCN.com
Method for returning mysql auto-increment id to 0
Recently, it has always been a headache to initialize data for the current project, and the auto-increment of database IDs is getting bigger and
How to record cases in beautiful format when writing mysql technical articles or ppt
How to record cases in beautiful format when writing mysql technical articles or ppt
Mysql-related technical articles are frequently written recently. There
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service