MySQL 5.7. More than 7 binary packages do not include the original data directory initialization system table, official website Description:Http://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysql-install-db.htmlApril 2016 MySQL
"Reprint Address: http://www.cnblogs.com/xzpp/archive/2012/07/18/2598136.html"See if MySQL is enabled to view slow SQL log files(1) To see if slow SQL logging is enabledMysql> Show variables like ' log_slow_queries ';+------------------+-------+|
--Stored procedure name and parameters, in parameter in for incoming parameters, out for outgoing parameters, inout for incoming outgoing parameters create procedure P_procedurecode (in sumdate varchar) BEGIN DECLARE V_sql varchar (500);
1 A rollback connection handle is required before the transaction is opened. (Garbage removal)2 mysql_ping failure, the program needs to deal with the re-connected logic;3 mysql_query () The SQL statement executed is a string ending with '/0 ',
Resources:Http://www.cnblogs.com/macro-cheng/archive/2011/10/25/mysql-001.htmlhttp://blog.csdn.net/justaipanda/article/details/50531359The simplest way to install MySQL on an OS X platform is to use the official web page to download the community
Install MySQL before using XMPP, little white encounter a lot of pits, do not take offenseDownload the MySQL website and select the file with the community extension DMGAfter the installation to remember the password, the important thing to say only
Locate the profile My.ini, and then open it, and you can choose to open it in Notepad, looking for the following method:After opening, search for mysqld keywordWhen found, add skip-grant-tables below mysqld to save the exit.PS: If prompted not to
View index show index from database table nameALTER TABLE Database add index index name (database field name)PRIMARY key (primary key index)ALTER TABLE ' table_name ' ADD PRIMARY KEY (' column ')Unique (single index)ALTER TABLE ' table_name ' ADD
DELIMITER//CREATE PROCEDURE SS (in X1 int)BeginINSERT into Pro (ID) values (x1);end//DELIMITER;Call SS (1004);################################View:Method One: (direct query, more practical, view the currently customized stored procedures)Select '
Mysql-h host Address-u user name-P user password enter MySQL database
Mysqladmin-u username-p Old password password new password Change password
SHOW DATABASES; List Databases
Use database_name using database_name database
Create
SQL classificationSQL statements can be divided into 3 categoriesDDL: Data definition language, defining data segments, databases, data tables, and other DML: data manipulation statements for adding, deleting, updating, and querying database records
A database is a warehouse where data is stored and managed, but the database itself cannot store data directly, and data is stored in tables. Storing data is bound to use the database server, that is, a computer is installed on a database management
MySQL database has a database named MySQL;Yes, it's a bit of a detour, and it's understandable to read it more than two times.The execution show tables; can be found to have so 28 tables under
MySQL notes: Advanced connectionsCreate advanced connections
The previous blog briefly introduces the use of connections. This blog introduces how to create advanced connections.Use table alias
In the previous study, we learned how to get an alias
Mysql green version is enabled in windows, mysqlwindows
Start mysql Green Edition in windows
1. Download mysql installation-free version such as: mysql-5.7.11-winx64
2, modify the configuration file, my-default.ini name changed to: my. ini, the file
Recommended distributed system architecture mycat read/write splitting video tutorial, system architecture mycat
Longgo College
Lecturer: Wu Shuicheng
Iii. high-availability architecture
Section 13th -- MySQL source code compilation and
Database (11) mysqlsql Functions
. 1) count
Syntax:
select count(*) from tableName;select count(column_name) from tableName;select count(DISTINCT column_name) from tableName;Note:
The count (column_name) function returns the number of values in the
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