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
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
Slow query caused by MySQL prefix index bitsCN.com
Slow query caused by 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 up and used explain
Create and delete a MySQL trigger bitsCN.com
Create and delete MySQL triggers
The following article describes how to create a MySQL trigger and how to delete a MySQL trigger. if you create a MySQL trigger correctly, if you are interested in
The default master-slave (masterslave) engine is inconsistent, causing replication failure to solve bitsCN.com
Master-slave (master/slave) default engine inconsistency causes replication failure solution
My colleague told me that the replication
Explanation of mysql multi-instance installation bitsCN.com
Detailed description of mysql multi-instance installation
First, describe a scenario: My computer is a ubuntu system, and mysql has been automatically installed by apt-get before. This is
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 basics: log on and exit, change the user password, and add or delete users. now I am learning mysql, and I am the first to contact user management.
Note: mysql commands can be case sensitive.
============ Logon and exit =====================
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
A simple script for detecting whether the mysql master/slave is normal or not bitsCN.com
Script for simple mysql master/slave check
I want to use a simple script to test whether the master and slave databases are normal.
01 #!
In linux, mysql automatically backs up databases and automatically deletes temporary files bitsCN.com.
Mysql automatically backs up databases and deletes temporary files in linux
1. Automatically delete temporary files at every day
First, check
Mysql numeric data type bitsCN.com
Mysql value data type
MySQL numeric data types can be roughly divided into two categories: one is an integer, and the other is a floating point or decimal. Many different subtypes are available for each of these
[MySQL] account and permission management bitsCN.com
[MySQL] account and permission management
MySQL initial account management
The initial MySQL account is as follows:
[sql] [root@lx16 ~]# mysql -u root mysql> select host,user,password from
Don't stick to the details-mysql field type details bitsCN.com
Don't stick to the details-mysql field type details
Mysql field type intvarchartext
Maybe you don't care at ordinary times. when designing a database, you can set the number to an int (
Mysql backup recovery (view, stored procedure) bitsCN.com
Mysql backup and restoration (views and stored procedures)
Recently, when I backed up and restored mysql, I found that the view was restored and an error occurred while creating the view. I
MYSQL deadlock-related searches for bitsCN.com
MYSQL deadlock search
If a deadlock occurs, how can this problem be solved? Find the original lock ID and KILL the thread that has been held all the time. but how can we find the thread ID that causes
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