Solve database Table bitsCN.com
Solve the problem of database Table 'content _ tags' is marked as crashed and shoshould be rewritable red Table corruption.
Today, the website TAG page suddenly fails. open debug and a prompt is displayed.
[php]
LinuxHugePages and MySQL large page configuration bitsCN.com
Linux HugePages and MySQL large page configuration
(I) HugePages introduction
HugePages is introduced by kernel 2.6 to adapt to the increasing physical memory size.
In Linux, the
MySql randomly retrieves a data entry from the table result set bitsCN.com
MySql randomly retrieves a data entry from the table result set.
[SQL] Select * from (Select (@ rowNo: = @ rowNo + 1) AS rowno, pwd from pur_admininfo, (Select @ rowNo:
Mysql database learning-3. table creation, deletion, and modification of bitsCN.com
Mysql database learning-3. table creation, deletion, and change
Create table mytbl (id int auto_increment not null, name char (10) not null, birth date not null,
Mysqlcreatetable process bitsCN.com
Mysql create table process
A rough understanding of the mysql create table process:
Cpp code
The call path for create table is as follows (5.1.58 ):
Do_command (SQL _parse.cc)
-> Dispatch_command (SQL _parse.cc)
MYSQL remote logon permission setting bitsCN.com
MYSQL remote logon permission settings
Mysql disables the remote logon permission by default. the following operations allow users to log on to any location: 1. go to mysql and grant all privileges
Mysqldelete: tens of millions of data operations bitsCN.com
Mysql delete tens of millions of data operations
In mysql, when the delete operation drops tens of millions of data records, the table may be locked, and the mysql server may be under
Introduction to MySQL garbled processing and character set bitsCN.com
Problem introduction:
We often encounter some cases of inserting Chinese characters into the MySQL database, but when we select them, we find garbled characters. For example,
MySQLDATE_ADD () function bitsCN.com
MySQL DATE_ADD () function
In fact, I always think that the DATE_ADD () function is unreasonable and misleading others, because it is not only about the increase of dates, but it is often used for
Mysql regular backup operation bitsCN.com
Mysql scheduled backup
1. create the path to save the backup file/mysqldata
# Mkdir/bak/mysqlbak
2. create the/usr/sbin/bakmysql file.
# Vi/usr/sbin/bakmysql. sh
3. write the following script:
[Python]
#! /
How to accelerate MySQL import and export: bitsCN.com
How to accelerate MySQL import and export
SQL statements exported from MySQL may be very slow during import. it may take several hours to import millions of data records. Using a few
Some problems during mysql installation: bitsCN.com
Some problems during mysql installation
The problem is as follows:
/Usr/bin/mysql_secure_installation
NOTE: running all parts of this script is recommended for all MySQL
Servers in production
Select the mysql database field type (go to bitsCN.com)
Currently, many developers use PHP + mysql to develop websites. when creating a database, we should not only consider the comprehensiveness of database fields, but also consider the rationality
Database Design-primary key design bitsCN.com
In our database design, the primary key of the database table is unavoidable. many may not think deeply about it. the design of the primary key has a great impact on the design of the entire database,
UbuntuServer12.04 install mysql5.6.10 UbuntuServerUbuntu
BitsCN.com
The first time I got in touch with the server version of Linux, it was also the first time I installed binary mysql with command lines. it took two days and one night to get started.
BitsCN.com
Mysql uses source command garbled
Today, I exported an SQL execution file from windows, and then poured it into unbutn. The result is garbled. it took 7 to 8 minutes,
Solution
When exporting the mysql SQL execution file,
Classic SQL statement Daquan (2) bitsCN.com
II. improvement1. description: copy a table (only copy structure, source table name: a new table name: B) (Access available)Method 1: select * into B from a where 1 <> 1 (for SQlServer only)Method 2:
Mysqlamp; gt; query statement bitsCN.com
Mysql> query statement
* Query multiple non-repeated records
Id name
1
2 B
3 c
4 c
5 B
Select id, name from s1 group by name
1
2 B
3 c
5 B
* Query records with the most repeated records
Ubuntumysql remote connection solution
BitsCN.com
When opennebula 3.8 is configured today, when one start is started, an error indicating that the database cannot be connected is reported,However, you can log on by entering mysql-uroot-p in shell,
Mysql views the storage engine, table structure, and other information of a table. bitsCN.com
View the information of the mytable table
1. view the storage engine and number of records of a table.
Mysql> show table status like 'mytable'/G; * ********
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