MySQL exercises one

DROP TABLE IF EXISTS ' Liuyan '; CREATE TABLE ' Liuyan ' (' id ' int (11) not NULL auto_increment, ' title ' varchar (32) not NULL, ' author ' varchar (16default NULL, ' Addtime ' datetime DEFAULT null, ' content ' text, ' status ' char (1) Not NULL

MySQL installation configuration

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

Sql_mode parsing and setting for MySQL

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

MySQL 5.7.21 binary installation on the OEL6.9 platform

Prerequisite Preparation (shutdown firewall, selinux, install Libaio)shell> chkconfig --level 2345 iptables offshell> service iptables stopshell> vi /etc/selinux/configSELINUX=disabledshell> Yum Install Libaio1. 配置用户属组 (MySQL用户不需要登录操作系统)shell>

MySQL encoding problem:

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#

MySQL basic three triggers

Product List--Table "goods" DDL:CREATE TABLE goods (gidInt (one) is not NULL,namevarchar (DEFAULT) NULL,numsmallint (6) DEFAULT NULL,PRIMARY KEY ( gid )) Engine=innodb DEFAULT Charset=utf8;Order table -table "orders" DDL:CREATE TABLE orders (oidInt (

CentOS7 installing MySQL with Yum

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

MySQL Performance analysis and optimization

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 MySQL is sorted

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

MySQL Add foreign KEY statement

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

Xampp MySQL cannot start a solution

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 password, connect mysql,mysql common commands

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

MySQL Import millions Data schema summary

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

MySQL binary installation

MySQL Binary installation documentation 2018/3/16 18:35:49[Email protected]Https://dev.mysql.com/doc/refman/5.7/en/binary-installation.html [TOC]0. Installation Brief steps installation package 10.162.73.61:/data/software

MySQL Installation of Yum installation

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

linux-apache-mysql-php

CentOS Release 6.5 (Final) x86_64Apache:wget http://archive.apache.org/dist/httpd/httpd-2.2.27.tar.gzTar CD./configure--prifix=/application/apache2.2.27--enable-deflate--enable-expires--enable-headers--enable-modules=

Mysql backs up and transfers data, mysql backs up and transfers data

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

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

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 database

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

Total Pages: 3233 1 .... 2095 2096 2097 2098 2099 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.