Use the mysql command line to export SQL bitsCN.com
Use mysql command line to export SQL
In fact, it is very simple. you only need two steps to first enter the mysql command line, enter the use database name, and then enter source test. SQL to
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
Mysqls clear fragmentation operation bitsCN.com
Mysqls fragment operation
Note:
Every time MySQL deletes a row of content from your list, this section is left empty. A large number of delete operations within a period of time will make this
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
Install mysqlworkbench in centOS
BitsCN.com
Step 0: install mysql
Install mysql before following the workbench. Command is
Yum install mysql-server mysql-libs mysql-server
The functions of mysql packages are as follows:
"Mysql for the client tools,
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
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
Mysql boolean settings bitsCN.com
Mysql boolean settings
MySQL does not have the boolean type. This is also a strange phenomenon. Example:
Create table xs
(
Id int primary key,
Bl boolean
)
In this way, you can create a table
Some common O & M Records of linuxmysql, bitsCN.com
Common O & M Records for linux mysql
// Stop mysql
# Service mysqld stop
// Start mysql in safe mode and skip permission check
# Mysqld_safe -- user = mysql -- skip-grant-tables &
//
Mysql index -- (mysql 2) bitsCN.com
Mysql index -- (mysql 2)
Index type:
Normal index
Primary key
Foreign key
Unique index
Non-unique
Professional index:
-- B-tree balanced number index, which is different from binary tree. the height of a binary
Mysql obtains all database table names and field comments bitsCN.com
Mysql obtains all table names and field comments of the database.
1. obtain field comments
Java code
Select COLUMN_NAME column name, DATA_TYPE field type, COLUMN_COMMENT
$ _ SERVER array element description bitsCN.com
$ _ SERVER array element description
$ _ SERVER ['php _ SELF '] # file name of the script being executed, which is related to document root.
$ _ SERVER ['argv'] # parameters passed to the script.
$ _
MySQL command line garbled solution bitsCN.com
MySQL command line garbled solution environment: MySQL Sever 5.1 + MySQL command line tool
Problem: garbled data in the database is queried through command lines. Solution: [SQL] set names utf8; -- it
Mysql (1) install bitsCN.com in mysql
Mysql (1) installation of mysql 1. installation of Mysql 2. installation of mysqldata Library first download of mysqlinstallation package mysql-5.0.85.tar.tar
Upload the downloaded installation package to
MySQL single table ibd file recovery bitsCN.com
Preface:
With the popularization of innodb, innobackup has become a mainstream backup method. Physical backup can easily meet all database recovery requirements when creating a new slave.
However,
Mysql-innodb lock classification bitsCN.com
I. innodb row lock classificationRecord lock: record lock, that is, only a single row is locked.Gap lock: interval lock. Only one interval is locked. (note that the interval here is an open interval, that
Drizzlelua data transmission (ngx. location. capture) bitsCN.com
WEB developers who often use PHP development have just switched to the NGINX + DRIZZLE development environment and started to estimate how LUA can obtain the data returned by DRIZZLE +
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
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
What are the indexes in the mysql database and what is bitsCN.com?
What are the indexes in the mysql database?
This article describes how to accelerate MySQL index analysis and optimization for dynamic websites.
1. what is an index?
Indexes are
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