basic creation of a table create TABLE userinfo ( username char (5) Not NULL, pwd VARCHAR ( age Sex SMALLINT(100))The blue representation is the keyword in SQL CREATE TABLE userinfo is the table name
After understanding the cursors on Oracle, and then going through MySQL's description of the cursor, we found that this piece is relatively simple, with an example to illustrate how MySQL cursors can be used.The use of cursors is divided into 4
I've always felt a lot of trouble installing MySQL under Linux because it was a bit dizzy when it was installed because of a complicated configuration. Today, you need to connect MySQL with QT under Linux. The installation is equipped with a set.1)
The role of replication:Secondary implementation BackupHighly AvailableRemote disaster recoveryScale out: Load sharingServer-id is important in replication.Master-Slave architecture, do not use the MySQL agent, how to let the master responsible for
To modify the MySQL configuration file my.cnf, the contents are as follows:[Mysqld]Datadir=/data/mysql/dataSocket=/var/lib/mysql/mysql.sockUser=mysql# Disabling Symbolic-links is recommended to prevent assorted security risksSymbolic-links=0# Set
Background: The installation version of MySQL and my laptop have revenge, the last step old card dead1. First unpack the downloaded compressed package , such as:2. There will be a file called My-default.ini (of course I have changed to My.ini),
Main operation:
Enter the main database to view the status:
Mysql> Show Master STATUSG;1. Row ***************************file:mysql-bin.000001position:604binlog_do_db:binlog_ignore_db:1 row in Set (0.01 sec)From the operation:
The modified users are listed as root.First, the root of the original myql password;Method One:Outside the MySQL system, use the Mysqladmin# mysqladmin-u root-p Password "test123"Enter Password: "Enter the original password"Method Two:By logging
An index is a special database structure that can be used to quickly query specific records in a database table. Indexes are an important way to improve database performance. In MySQL, all data types can be indexed. MySQL's indexes include normal
This article from: http://blog.chinaunix.net/uid-20785090-id-4759476.htmlFor Build-in's InnoDB architecture, each time the IO request is published, it isIs the thread of the MySQL service complete or is it done by innodb_read_io_threads? Discuss
according to MySQL lock monitor This article to operate. Readiness condition: More than 5.6.16 version of MySQL, login MySQLOpenSet global Innodb_status_output=on;set global innodb_status_output_locks=on;Add and Modify tables.Mysql>Show CREATE TABLE
In MySQL, if a table contains no varchar, text, and its deformation, blob, and its deformed fields, then this table is actually called a static table, that is, the table row_format is fixed, that is, each record occupies the same byte. The
DROP PROCEDURE IF EXISTS ' Sp_model ';DELIMITER;;CREATE PROCEDURE ' Sp_model ' (in V_type INT)BEGIN/********** stored procedure template, combined • Return custom error message • Error exit • • Things Roll back • function ***********/DECLARE v_test
IntroductionThe sub-partition is actually separate each partition of each partition table, currently only the range and list partition table can be sub-partition, sub-partition can only be hash or key partition. Sub-partitions can divide the
1, need to promote the main from the library, stop IO thread waiting for slave data all update completeStop slave Io_thread#show processlist output until you see that the status is slave have read all relay log; Waiting for the slave I/O thread to
PowerDesigner executes SQL to generate the model, powerdesignersql
PowerDesigner version: 15.2.0
The procedure is as follows:
1. Open the PowerDesigner software, such:
2. Select File> Reverse Engineer> Database..., as shown in:
3. In the
SQL data constraints
Data constraints
--Restrict data in user operation tables
1,Default Value
-- When you do not insert a value for a field that uses the default value, the default value is used.
1) insert null to the default field.
2) non-null
MySQL database basics of MySQL_01, mysql_01mysql
1. operate databases through SQL (Structured Query Language:DDL: Data Definition Language, database creation, table creation, and selection;DML: data operation language to add, delete, and modify data;
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