MySQL study note 18: mathematical functions bitsCN.com absolute value functions ABS (x) and circumference ratio functions PI ()
mysql> SELECT ABS(0.5), ABS(-0.5), PI();+----------+-----------+----------+| ABS(0.5) | ABS(-0.5) | PI() |+----------+
MySQL advanced query: Functions and keywords used in the GroupBy set bitsCN.com
1GROUP_CONCAT
Mysql>SELECT student_name,
->GROUP_CONCAT (test_score)
->FROM student
->Group by student_name;
Or:
Mysql>SELECT student_name,
->GROUP_CONCAT (DISTINCT test_
When installing MySQL5.6 to create a user and create a password, the system always prompts that the password does not meet the requirements: ERROR1819 (HY000): YourpassworddoesNOT .. solve bitsCN.com
When installing MySQL5.6 to create a user and
[MySQL] using mysqldump for text backup mysqldump
BitsCN.com
[MySQL] using mysqldump for text backup
When using mysqldump to back up MySQL, the backup file is a text file in SQL format, which consists of a series of create table and insert
Mysqlmysqldump data backup and incremental backup mysqldump
BitsCN.com this article mainly describes how to use shell to implement full mysql and incremental backup. Incremental Backup copies the mysql-bin.00000 * to the specified directory at
Parsing mysql: unique query for single table distinct and multi-table groupby to remove duplicate records bitsCN.com single table: distinct
Unique query for multiple tables: group
When distinct queries multiple tables, left join is still valid and
MySQL study Note 5: modifying the table (altertable) bitsCN.com we will inevitably consider the week before creating the table. Therefore, the alter table statement is required to modify the table later.
Modify table name
Mysql> alter table
How to query slow SQL statements in MySQL
1. query logs
(1) enabling MySQL slow query in Windows
In Windows, the configuration file of MySQL is usually my. ini. find [mysqld] and add
The code is as follows:
Log-slow-queries =
MySQL server permission table prompt: the MySQL server uses the permission table to control user access to the database. The permission table is stored in the mysql database and initialized by the mysql_install_db script. These permission tables are
PHP + MySQL tutorial (5): The MySQLSelect SELECT statement is used to SELECT data from the database.
Select data from the database tableSELECT statements are used to SELECT data from the database.
SyntaxSELECT column_name (s) FROM table_name note:
1 download the corresponding mysql installation source package address: http: devmysqlcomdownloadsmysql51html2 if you have installed it before, Uninstall unused installed mysql because many linux releases, the corresponding mysql is pre-installed,
Simple graphic counters require MYSQL and GD support
/***
Only one hit_count field in the hit_count table
The page_visit_record table is used to control one IP address to generate only one counter in a day.
Create table page_visit_record
Analysis and comparison of five MySQL database reliability solutions this article mainly analyzes and compares five MySQL reliability solutions in terms of basic conditions, costs, advantages and disadvantages, and application scenarios. In addition,
Precautions for installing and using MySQL on the server 1. Latest MySQL version
To install MySQL, you must first obtain the latest version of MySQL. although we all know that MySQL can be found in FreeBSD Packages, I suggest you go to the network
Some differences between MySQL and oracle databases (reprinted) some differences between MySQL and oracle databases
0. group function usage rules
In mysql, group functions can be used at will in select statements. However, if a group function exists
The HAProxy reverse proxy server supports dual-host hot standby and supports virtual hosts. the configuration is simple and has a very good server health check function. When the back-end server of the proxy fails, HAProxy will automatically remove
When MySql is started in Windows 7, the error Table bitsCN.com is returned.
When MySql is started in windows 7, the error Table 'MySQL. plugin 'doesn' t exist solution: 64-bit Windows 7, install mysql5.27 _ win64, and customize the installation to D:
Root Password Not Found-mysql root password reset method bitsCN.com
Reset the root passwordMethod 1: Add the following content to the [mysqld] field of my. ini:Skip-grant-tablesRestart the mysql service. mysql can log on to the database without a
Learn PHPamp; amp; MySQL-character encoding (2) bitsCN.com
Next to PHP & MYSQL-character encoding (1), this article mainly describes MySQL garbled characters and character set settings.
MySQL character set conversion process is as follows:
This
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