IntroductionNow because the project needs to build MySQL cluster, from the simplest start, first install a MySQL under Linux system.steps:First step: Install:Tar mysql-5.5.48-linux2.-x86_64.tar.gzCopy to the specified path:CP mysql-5.5.48-linux2.6-
Date 3 bytes, dates, format: 2014-09-18Time 3 bytes, duration, format: 08:42:30DateTime 8 Bytes, datetime, format: 2014-09-18 08:42:30Timestamp 4 bytes, automatically stores the time the record was modifiedYear 1 bytes, yearsTinyint 1 bytes, range (
Database connection and shutdown: Mysql-h Server host address-u user name-P user Password
Create a new user and authorize: Grant permissions on the database. Data table to username @ Login host identified by "password"
Creating database:
Log length for MySQLMySQL defaults to a record with a maximum length of 65535 bytes, with all fields added together, the number of bytes cannot exceed 65535. However, the length of a field in MySQL uses bytes to specify int, and some field types are
Originally installed on the computer is the version of 5.1, today the project needs, to be replaced by 5.5, but the installation to the last step "start the server" is stuck there, not executed, multiple installations failed, found a method on Csdn
prerequisite: MySQL function find_in_set (str,strlist), cast (value as type)Find_in_set (str,strlist): If the string str is a string list of n substrings consisting of strlist, the range of return values is 1 to n.If STR is not strlist or strlist is
InnoDB The storage Engine implements the online DDL The principle is that when you perform a create or delete operation, the DML The operation log is written to a cache, and the index is created and then re-applied to the table to achieve data
Example: Salary DECIMAL (5,2)In this example, 5 (precision (precision)) represents the number of important decimal digits, and 2 (scale) represents the number of digits after the decimal point. In this case, therefore, the salary column can store a
The learning record of this database is derived from the http://www.runoob.com/mysql/mysql-tutorial.html MySQL tutorial.MySQL is the most popular relational database management system. Developed by the Swedish MySQL AB company, currently owned by
Transferred from: http://www.jb51.net/article/62457.htmMyISAM is the default database engine for MySQL (prior to version 5.5), which was improved by the early ISAM (Indexed sequential access method: Indexed sequential access methods). Although
One of MySQL's most popular relational databases, currently affiliated with Oracle, is the first choice for our daily development because of its small size, fast speed, low total cost of ownership and open source code.Tools/Materials
mysql5.
SameShowThe timestamp column is displayed in the same format as the datetime column. In other words, the display width is fixed at 19 characters, and the format is Yyyy-mm-dd HH:MM:SS.DifferentRangedatetime Retrieves and displays datetime values in
How to install MySQL database, do not say here, just say its master-slave copy, the steps are as follows:1, the master-slave server for the following actions:1.1. Consistent version1.2. Initialize the table and start MySQL in the background1.3,
installing MySQL for the first time is easy and quick to install online. 1 to see if MySQL has been installed:#rpm-qa | grep mysqlIf no results are returned, the description does not install MySQL and can be installed completely.2. Check which MySQL-
Today, the server encountered a very familiar problemInput#mysql-U root-pERROR 2002 (HY000): Can ' t connect to local MySQL serverSearch the Internet for answersI'll try it one by one, according to the way everyone offersScenario 1.1. #ps-a|grep
1. Import the databaseAt the command line, enter:Mysql-u username-p Test Description: Username is the database user name, test for the target database, enter the database password, the import operation!Mysql>use test;Mysql>set names
Federated Storage Engine DescriptionThe federated storage Engine allows you to access a remote MySQL database without using replication or cluster technology (similar to Oracle's Dblink), using the Federated Storage Engine's table, locally storing
MySQL Data Type and operation data table, mysql DATA type data
Review in the previous section
I. Data Types
What is a data type?
Data type refers to the data features of columns, stored procedure parameters, expressions, and local variables. It
Common topology of MySQL ReplicationThe replication architecture has the following basic principles:(1) Each slave can have only one master;(2) Each slave can have only one unique server ID;(3) Each master can have many slave instances;(4) If you
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