Test under MySQL 5.1.5-alpha to the conclusionLatin1:1character=1byte, 1 kanji =2character,In other words, a field is defined as varchar (200), it can store 100 characters or 200 letters.This should be noted, especially when the field content is
ERROR 1418 (HY000) at line 639:this function have none of deterministic, NO SQL, or READS SQL DATA in its declaration and Binary logging is enabled (youmightWant to use the less safe log_bin_trust_function_creators variable)It turns out that the
InnoDB:Support transaction processing, etc.No lock ReadSupport for foreign keysSupport Row lockIndex of type Fulltext not supportedDo not save the table's exact number of rows, scan the table to calculate how many rowsDelete Table is a row of
Let's look at the simple use of MySQL help with a small example.As shown, there are three columns of data in the grade table, and now I need to add the "id" column to the table. In case I don't know the vocabulary of MySQL add-on, try to solve the
I. Specifying a pathIn the previous article, the binary package was unzipped, all put in the/usr/local/mysql directory, at the time of installation to specify the base directory and data directory,--basedir=/usr/local/mysql--datadir=/usr/local/mysql/
A. Backup1) Backup tableMYSQLDUMP-UROOT-P Library Name table 1 > E:\backup.sqlMYSQLDUMP-UROOT-P Library Name table 1 table 2 Table 3 > E:\backup.sql2) All tables under the backup libraryMYSQLDUMP-UROOT-P Library name > E:\backup.sql3) backing Up the
There are 2 commands to clear the data
-- 清空全部数据,不写日志,不可恢复,速度极快truncatetable表名;
-- 清空全部数据,写日志,数据可恢复,速度慢deletefrom表名
Business requirements: Clear all test data, leaving only empty data tables1. Querying all table names in the
Database tables:/*Navicat MySQL Data transfersource server:localsource Server version:50640source host:localhost : 3306Source database:springsecuritytarget Server type:mysqltarget server Version:50640file Encoding : 65001date:2018-08-25 22:10
Database additions and deletions changeCreate a databaseCreate Database School;Create a tableCREATE table info (ID int not NULL PRIMARY key Auto_increment,name char (TEN) notNull,score Decimal (5,2), hobby int (2));#primary Key PRIMARY key
Refer to this blog post:http://blog.51cto.com/12965094/21292671. Download the installation package wget Http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gzwget https://
Get a new environment, need to find the relevant configuration, I have a way to relatively fast copy a set of environment.To modify the machine configuration:Virsh related several commands, has been completed, follow-up I re-organize to add ...To
System DatabaseINFORMATION_SCHEMA: Virtual library, do not occupy disk space, storage is the database startup parameters, such as user table information, column information, permission information, character information, etc.Performance_schema:mysql
Source Address: https://www.jb51.net/article/140939.htmUsing Scrapy to crawl some of the data on the web, stored in the MySQL database, want to use Django to show the data, see on the web is using the Django models and Makemigration,migrate commands
MySQL version: mysql5.6 (Linux General Edition)Installation Environment:MySQL relies on libaio libraries. If this library is not installed locally, data Catalog initialization and subsequent server startup steps will fail. If necessary, install
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