several common installation packages for MySQL :rpm, source code, binary-free compilationStep (binary-free compilation):①Cd/usr/local/srcEnter the/USR/LOCAL/SRC directoryIiwget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.36-linux-glibc2.5-x86_6
Reference Address: http://blog.csdn.net/ccccalculator/article/details/70432123Because the use of group by in MySQL is always a 1055 error, which leads to the need to see what is the reason, query the relevant information, now note the notes, so that
In the My.ini file, change to:[Client]Default-character-set = UTF8port=3306[MySQL]Default-character-set=utf8[Mysqld]# The TCP/IP Port the MySQL Server would listen onport=3306# The default character set that would be used if a new schema or table is#
First CentOS7 already does not support MySQL, because charges you understand, so the internal integration of MARIADB, and install MySQL will and mariadb file conflict, so need to uninstall MARIADB, the following is uninstall MARIADB, install MySQL
The limit of the hash indexHash index must be searched two timesHash index cannot be used for sortingA hash index does not support partial index lookups, nor does IT support range lookupsHash code calculation in hash index may have a hashing
How to sort in MySQL:Select * from table name [where condition order by field name ( default is asc
in ascending order )]ASC is in ascending order andDESC is used to specify descending orderOracle Neutron query:SELECT * from table name
SQL statement Format:· Add FOREIGN KEY constraint: ALTER TABLE from TABLE ADD constraint foreign key (shape: Fk_ from Table _ Main Table) foreign key (from Table foreign key field) references Main Table (primary key field);Note that the (') in the
If MySQL fails to start, it indicates that MySQL was installed before XAMPP was installed, causing the MySQL service to fail to start.19:06:33 [MySQL] MySQL Service detected with wrong path19:06:33 [MySQL] change XAMPP mysql and Control Panel
Set Change mysqlroot passwordEnter MySQL database for the first time,!The MySQL absolute path can be added to the environment variable,You can also set the boot load,Reload environment variable for MySQL to take effectRe-login to Mysql-urootAdd a
Business data from the company headquarters, background data settings are exported by day CSV, but the analysis of the business needs to see the entire time trend, Excel has been dead, only on MySQL, with SQL statement query. In fact, the load data
MARIADB is installed by default in CentOS7, this is the branch of MySQL, but in order to need it, it is necessary to install MySQL in the system, and after the installation is complete, you can overwrite the mariadb directly.1. Download and install
Mysql backs up and transfers data, mysql backs up and transfers data
I. Back up data using mysqldump
Directly enter the command mysqldump and you will find that the prompt command does not exist because the system will find the command under/usr/bin
Translation: set password Statement (submitted to the MariaDB official Manual), passwordmariadb
This article is the official mariadb Manual: the translation of set password.
Original article:
MySQL concat and group_concat usage, concatgroup_concat
The examples used in this article are all executed in the following database table tt2:
1. concat () function
1. function: concatenate multiple strings into one string.
2. Syntax: concat
1. MySQL database basics, 1. mysql database1. MySQL database Basics
Display the current server version select version ();
Display the current date and time select now ();
Displays the select user () of the current USER ();
View database show
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