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
Mysql _ syntax summary bitsCN.com
Environment: mysql 5.5
Create database test:
1 create database test;
We can execute the code to create the test Database. if you want to check whether the database test has been created, you can use the code to view
MySQL5.6 replication: Advantages and limitations of GTID (part 1) bitsCN.com
The Global transaction Identifier (Global Transactions Identifier) is a new feature of MySQL 5.6 replication. It provides multiple possibilities for DBAs who maintain
MySQLServer → 5 transaction processing bitsCN.com
My SQL Server → 5 transaction processing
. Concept of transactions
The transaction mechanism treats a group of database operation commands as a complete and independent operation sequence, that is,
Mysql database/table sharding bitsCN.com
Mysql database/table sharding
Table Sharding is a good way to distribute database pressure.
Table sharding refers to dividing a table structure into multiple tables, which can be stored in the same database
One MySQL server starts multiple ports: bitsCN.com
One MySQL server starts multiple ports
In the test Mysql multi-master and one slave server, that is, one slave server synchronizes multiple ports to different master databases. This document
Install-free mysql with the command bitsCN.com
Install-free mysql command
How to use mysql without installation:
1. execute mysqld-nt.exe to start the mysql service.
2. for the initial database, the default username is root and the
Install and run two mysql database instances bitsCN.com on one server
Install and run two mysql database instances on one server
To facilitate the test, we want to use two mysql database instances. Take windows as an example
Of course,
User and password generation management in mysql bitsCN.com
User and password generation management in mysql
Application launch involves user name and password management. as the launch application increases, user name and password management
Common methods for starting, stopping, and restarting MySQL: bitsCN.com
Common operations for starting, stopping, and restarting MySQL
I. startup mode
1. start with service: service mysqld start2, start with mysqld script:/etc/inint.
The length of the mysql varchar field bitsCN.com
Length of the varchar field of mysql
When designing system fields today, I found myself not familiar with varchar. I have set a field. the type is VARCHER, and I tested it. it is found that not much
Mysql common data types and instance descriptions (study Note 1) bitsCN.com
1. Mysql in windows
Net start mysql [start]
Net stop mysql [stop]
Quit [exit mysql command line]
/C [cancel the input command]
Select version (), current_date ()
Mysql
Description of Sysbench parameters: bitsCN.com
Description of Sysbench parameters
# Sysbench test case: sysbench [general-options]… -Test =
[Test-options]… Command common options: -- num-threads = N number of test threads created. The
Mysql import/export password modification command summary (note 3) bitsCN.com
I.Export data from a database
Note that these statements are executed before the mysql command line is started.
C:/Windows/system32> export command
Instead
Mysql> export
MySQL integer date and time type description bitsCN.com
MySQL integer/date/time type description
MySQL integer type: storage space occupied and integer range comparison.
MySQL date type: Date format, storage space occupied, and date range
The role and separation of ibdata in mysqlInnodb bitsCN.com
Functions and separation of ibdata of mysql Innodb
In the mysql INNODB data status, ibdata is used to store file data, while the table files in the folder of the database name are only
Analysis of Mysql data Rollback Error solution bitsCN.com
This section describes how to solve Mysql data rollback errors. For more information, see
MYSQL transaction processingThere are two main methods.1. Use begin, rollback, and commit to
[SQL] MySQL Performance Optimization bitsCN.com
[SQL] MySQL Performance Optimization
1. optimize your query for the query cache
Query cache is enabled on most MySQL servers. This is one of the most effective ways to improve performance, and it is
MySQL Chinese index plug-in mysqlcft installation and use bitsCN.com
MySQL Chinese index plug-in mysqlcft installation and use
1. MySQL must be dynamically compiled and installed to load the dynamic link library.
2. edit the MySQL configuration
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