Two slave servers in mysql are not properly shut down, and the instance cannot be started.
Two slave servers in mysql are not properly shut down, and the instance cannot be started.
For master-slave configuration and startup online, I can see the
Mysql database backup and restoration commands: Command for backing up MySQL database
Mysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL
Back up the MySQL database in the format of a table with deletion
Backing up a MySQL database
Postgresql to mysql tool bitsCN.com
I collected some articles on postgresql to mysql on the internet. most of them said that I first exported the SQL script from postgresql, and then manually changed some of the statements in the SQL script to the
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
How does mysql delete an index when determining whether an index exists? bitsCN.com
How to delete an index when an index exists in mysql
Mysql's drop index statement does not support the if exists condition. you can delete an index in SQL,
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
Mysql modification connection timeout in Linux bitsCN.com
Connection modification timeout for mysql in Linux
1. First, go to mysql and check whether the value wait_timeout and interactive_timeout are the default 8 hours (that is, 28800)
[Root @
Mysql log command bitsCN.com
Mysql log command
Mysql has the following types of logs:
Error log:-log-err
Query log:-log
Slow query log:-log-slow-queries
Update log:-log-update
Binary log:-log-bin
In the installation directory of mysql,
MySQL Query cache summary bitsCN.com
MySQL Query cache summary
You can use the following SQL statement to view the cache-related parameter status of the current query:
1
Show variables like '% query_cache % ';
The output result is similar to the
Forget MySQLROOT password bitsCN.com in Window7
Forget the MySQL ROOT password in Windows 7
The solution is as follows:
1. stop mysql service
Net stop mysql
2. start mysql without checking permissions
Mysqld -- skip-grant-tables
You can
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 sorted by Chinese name bitsCN.com
Mysql is sorted by Chinese name
SQL code
/*
Navicat MySQL Data Transfer
Source Server: local
Source Server Version: 50022
Source Host: localhost: 3306
Source Database: test
Target Server Type:
[Original] mysql view bitsCN.com
The format is not correct because it has not been modified.
A view is a table imported from one or more tables. it is a virtual table. a view is like a window, through which you can see the data provided by the
Mysql export and import the Chinese table bitsCN.com
Mysql export and import a Chinese table
1. export data for utf8 first:
(1) export all tables of the source database:
Mysqldump-u root-p password -- socket = mysql. sock -- default-character-set =
MYSQL _ common database commands bitsCN.com
MYSQL _ common database commands
1. log on
$ Mysql -- user = root -- password = xxxxxx
2. database operations
List all databases
Mysql> show databases;
Create a database
Mysql> create
Mysql locally imports data from a remote database bitsCN.com
Mysql locally exports data from a remote database
Preface: I recently started to use the Ubuntu system. there is really no good mysql interface program, so I can only operate it on a
Queries the disk space used by all databases in mysql and the size of all tables in a single database bitsCN.com
Query the disk space used by all databases in mysql and the size of all tables in a single database
SQL code
Select TABLE_NAME,
Mysql database index creation rule bitsCN.com
Mysql database index creation rules
1. the table's primary key and foreign key must have an index;
2. indexes should be available for tables with more than 300 of the data volume;
3. for
MySQL system optimization and problem search bitsCN.com
MySQL system optimization and problem search
Performance Optimization Related status parameters
Show status like 'value ';
Connections
Uptime start time
Show_queries slow query
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