Start MySQL
start service: sudo service mysql start
login: mysql-u root
New Database
CREATE Database The
is not case-sensitive in most SQL systems, but it is customary to keep uppercase letters, variables and
Now only supports MyISAM and InnoDB
Partitioned tables are not supported
Some character sets are not supported. such as: UCS2
Hieroglyphs are not supported. Need Ngram to participle?
Each field that establishes a full-text index must be
First, the concept of proofing setsProofing sets are the way data is compared, and the proofing set works when the data is compared.Two or three different formats1, _bin:binary, binary comparison, take out bits, a comparison of one (case-sensitive).2
When it comes to the efficiency of MySQL's count (*), we find that the more you speak it, the more you say it, and simply write it down and share it.COUNT (*) with COUNT (COL)Search the Internet, found that all kinds of statements are:For example,
To create a database:Create DATABASE KALIBOY_GBK DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;Create DATABASE Kaliboy_utf8 DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;To display the database:show databases;Show databases like '%kaliboy% ';
ConnectionMysql-h192.168.1.113-uroot-p3306-phaha-P followed by password-U followed by user nameBuild tableCREATE TABLE ' TableA ' (' id ' int (one) not NULL auto_increment COMMENT ' id ',' Name ' varchar (1024x768) not NULL DEFAULT ' COMMENT '
One, Apache can not actively jump but show foldersApache can not actively jump but show folders this is because Apacheserver under conf/httpd.conf not configured well, its default is not to jump, directly display the folderFirst, we need to prohibit
Environmental requirementsGCC, gcc-c++, CMake, bison (possible) support1.Yum install gcc gcc-c++ cmake Bison2, modify the Yum configuration, to achieve the search local settingsRemove or rename/etc/yum.repos.d/centos-base.repoModify Vi/etc/yum.repos.
Mysql> CREATE TABLE Country (> country_id smallint unsigned not NULL auto_increment,>country varchar () NOT NULL,>last_update timestamp NOT NULL the default current_timestamp on update Current_timestamp,>primary Key (country_id)>) engine=innodb
1. Description of the errorError No. 2003Can ' t connect to MySQL Server on ' localhost ' (10061)2. Cause of Error Open Task Manager and close the Mysqld-nt.exe3, the solution of the methodMysqld-nt.exe is a MySQL daemon database service-related
1 principleThe MySQL query cache saves the full result returned by the query. When the query hits the cache, the results are returned immediately, skipping the parsing, optimization, and execution phases.The query cache tracks each table involved in
###########################################################################################Using PHP, HTTP, Mysql,zabbix to monitor the presence of the monitoring business is not normal display, the situation is as follows:650) this.width=650; "src="
"Issue 1" installs MySQL directly on centos6.8 using Yum, and everything is installed properly. Show when MySQL starts: ERROR 2002 (HY000): Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2) (1),
First, mathematical functionsMathematical functions are mainly used for processing numbers, including integers, floating-point numbers, and so on.ABS (x)Returns the absolute value of XSELECT ABS (-1)--return 1Ceil (x), CEILING (x)Returns the
MySQL thread_stack connection thread optimization, mysqlthread_stack
MySQL connections can be connected not only through the network, but also by naming the pipelines. in MySQL, all client requests are managed through threads. Each client connection
Talking about the key_len Calculation Method in mysql explain, explainkey_len
The explain command of mysql can analyze the SQL Performance. One of them is the statistics of key_len (index length. This article analyzes the calculation method of
SQL where, group by, and having usage parsing, sqlhaving
-- SQL where, group by, and having usage parsing -- if you want to use group by, you generally use "every word". For example, there is a table like this: how many people in each department
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