The flowers are fine.Blog: http://blog.csdn.net/qing_geeOther sites, if reproduced, please be sure to indicate the source!Foreword : Recently has been doing project performance optimization, experienced a one-week detour, and finally found a
Export:The following command-line specific usage is as follows: Mysqldump-u username-p password-D is the name of the script in the database name table;1, export the database as DBNAME table structure (where the username is root, the password is
1, first to the MySQL official online to find;Website: http://dev.mysql.com/downloads/Discover the Yum MySQL repot option:2. Find the MySQL yum repo address in the URL above:http://dev.mysql.com/downloads/repo/yum/3. Find the need for a specific
Some time ago, a rather senior programmer asked me what is called the index, I am very surprised, I think this will not be bucket, because there are thousands of developers (probably mostly using MySQL) have not received the formal training of the
After the MySQL database installation is complete, the default maximum number of connections is 100, general traffic slightly larger forum or website this number of connections is far from enough, there are two ways to increase the default MySQL
Why does the title have to be named? Commen sence refers to things everyone should know, but often people will be slightly more of these things, or to these things smattering, today I summarize my own in MySQL encountered some commen sense types of
1. Basic principles: Optimizing Data access(1) Do you want the server to request the data that is not needed? Extracting more columns than you need, extracting all the columns when you join a multi-table connection, extracting all the columns
Mysqldump backup mechanism: Through a given parameter information and system table data, a table to get the data and INSERT statements inserted into the backup file, so because of inconsistent time, will result in inconsistent data, but for a system
If two tables one is User table Tdefuser (userid,address,phone), one is the consumer table Taccconsume (userid,time,amount), I want to check the consumption of more than 5000 of the user records, then I can write Select * from Tdefuser where
mysql-uroot-p Password//Logincreat database people; CreateDROP database name//deleteShow databases//view all databasesuse database name//using a database Show tables//Show all tables under the current databasedesc Table name//View the properties of
People old memory will fall, in order to avoid my old remember mysqldump this command, I'll just write this thing down- - - 10.132. 56.188 > table. sqlNote that this command will be followed by the path name if you want to change the path if the
Primary server (192.168.1.111) configuration:1. To set up authorized users from the server 2, modify the master server Profile MY.COF, open the Bin-log log, and set the Server-id value (each server-id is not the same) 3, set the read lock on the
I. MySQL build processInstall MySQL on Ubuntu1, sudo apt-get install Mysql-server2, sudo apt-get install mysql-client3, sudo apt-get install Libmysqlclient-devII. Basic Command-----login, exit, add a database, add a table, delete a database, delete
First, install MySQLType the following command at the terminal: sudo apt-get install mysql-serverDuring the installation, a configuration interface will appear prompting the user to set the password for MySQL root user.if the installation is
MySQLCOUNT and GROUPBY
Group by is used to group the results, which facilitates statistics After grouping, so there will always be count followed
See the following table for example:
Group by ID, count the number of times each ID is repeated
11. Create and authorize a user in mysql
1. Create a user.
// Log on to MYSQL
@> Mysql-u root-p
@> Password
// Create a user
Mysql> insert into mysql. user (Host, User, Password) values ("localhost", "abc", password ("1234 "));
// Refresh the system
Compile and install MySQL5.5.x in Linux source code
Linux: CentOS 6.5
MySQL version: 5.5.20, attached: [Click to download]
1. Install cmake
MySQL 5.5 and later versions have been replaced by the cmake tool./configure compilation and configuration
9. mysql (linux) read/write splitting
After Mysql master-slave mutual backup, in order to make full use of the two (or more) machines, the necessity of read/write splitting is highlighted. Advantages and disadvantages this is not the focus of the
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