1. Download the official source code
Mysql:wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.23.tar.gz
Cmake:wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.23.tar.gz
2. Compile and install MySQL
Automatically backs up MySQL databases under CentOS and synchronizes the differences to other network hosts1, add backup.sh:vim/root/mysql_backup/backup.sh under/root/mysql_backup/, then add the following code inside:Mysqldump-uroot-p ' a123456 '
Log in with the root User MySQL development tool (recommended MySQL Workbench), the SQL Execution window executes the following SQL, will create a test_db database:650) this.width=650; "title=" Operator Interface "alt=" Wkiom1gz3lozqmpdaadvxvpvsiu177
Using Cache memcache,1, the hash algorithm can be used by the client to decide which Memcache server to route to, the client does not care about which Memcache server the data is stored, completely isolate the client and the service side; Select to
1. Modify the configuration fileVim/etc/my.cnfAdd in [MYSQLD] nodeSkip-grant-tables2. Restart MySQL3. Enter with a blank passwordMysql-urootPerformUpdate Mysql.user set Authentication_string=password (' 123 ') where user= ' root ' and Host = '
Today we see the case that group by is used to see that it is still a good group_concat, and the fields after the grouping are merged together.Insert into table_name (code,name,age) value ('10001',' Zhang Sanfeng ' ,);Insert into table_name
System variables can be modified auto_increment_incrementMysql>SHOW VARIABLES like 'auto_inc%'; +--------------------------+-------+|Variable_name|Value|+--------------------------+-------+|Auto_increment_increment| 1 | View Step
Index creation Occasions:①where the Back field is suitable for indexing②order by sort fields suitable for indexing③ index Overwrite that is, the field you are querying is the index that queries the data directly in the index. For example, select
Brief introductionThere is a business scenario in the production process: for example, I backed up the database by mysqldump in 2016-11-19 09:30:00, but the database crashed in 2016-11-19 10:30:00. If we restore through our backup file, we can only
One: Uninstall the old versionUse the following command to check if MySQL Server is installedRpm-qa | grep MySQLSome words are unloaded by the following commandRPM-E MySQL //normal Delete mode rpm-e--nodeps mysql //brute force Delete mode, if
In MySQL database system we modify the user password in a total of three waysThe first type: SET PASSWORD mode# Modify the current login client user password mysql> SET password=password (' 123456789 '); Query OK, 0 rows Affected (0.00 sec) #
A Yesterday's content review
Index Design basisThe SQL statements that are related to the data table are counted.Fields of the where order by or and so on are properly indexedPrinciple:High-frequency SQL statementsSQL statement with long
Mysql migrates database instances by copying data files, and mysql copies
Mysql migrates a database by copying data files.
-- Windows Environment
Copy the source machine database A to the target machine B:
I first install MySQL on the target
Mysql startup error 1067 Problem and Solution, mysql1067
This article introduces the solution to error 1067 when the mysql service cannot be started.
I tried several methods that Google had not solved. Then I suddenly remembered the iis port usage
In-depth exploration of mysql (1)-Introduction to database and mysql installation, from simple to deep mysql
Mysql installation: Since you only have a Linux computer, Let's explain how to install mysql in Linux! In fact, I suggest you directly use
How to quickly insert data in batches using JDBC in a MySQL database, jdbcmysql
How can we improve efficiency when we use JDBC to connect to the MySQL database for data insertion, especially continuous insertion of large batches of data (more than 10
30-minute MySQL Quick Start (illustration) and mysql Quick Start
1. Install MySQL
MySQL download
Http://dev.mysql.com/downloads/mysql/
MySQL version Selection
Custom MySQL feature Installation
Custom Feature Selection
Custom Path Selection
Set
Detailed description of formatting dates in mysql and detailed description of mysql dates
1. the DATE_FORMAT () function is used to display date/time data in different formats.
DATE_FORMAT(date,format)
The format of the format parameter is
In-depth analysis of MySQL backup and recovery mechanisms, in-depth analysis of mysql
This article discusses the backup and recovery mechanisms of MySQL and how to maintain data tables, including the two most important types of tables: MyISAM and
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.