Build the server. How do I import a database? Let's just get a user.Database name (already exists): TableCreate a new MySQL user and specify the database to allow remote accessMySQL User: TestMySQL User password: test666CREATE USER
Type name
Storage format
Date Range
Storage requirements
Year
YYYY
1901 ~ 2155
1 bytes
Time
HH:MM:SS
-838:59:59 ~ 838:59:59
3 bytes
DATE
Yyyy-mm-dd
1000-
One, the use of Timestampdiff (interval,datetime_expr1,datetime_expr2)Returns an integer difference between a date or datetime expression Datetime_expr1 and datetime_expr2the. The unit of the result is given by the interval parameter.Instance:Select
Mysql Database Installation application1:MySQL is a multi-user, multi-threaded service. Advantages:PerformanceHigh reliability and ease of useDefault Usage TCP 3306 port matching file is /etc/my.cnf2:MySQL Compilation installation process:use
outfile exporting data from a databaseSELECT * into outfile ' e://mysqloutfile//1.txt ' from table name;Backup and restoreNo longer backup in MySQL directory, mysqldump-uroot-p database name + table name > Specific path name (where do you want to
1.1 database field Design specificationprioritize the smallest data types that meet storage needs :The non-negative data is stored by the unsigned integer type;varchar (N) in N represents the number of characters, not the number of bytes ( Oracle
System Environment: ubuntu12,13,14Installing the Software Php+mysql+nginxUpdate system software before installation: The Apt-get update operation is under ROOT to open the terminal into rootOne, MySQL installation: Apt-get Install mysql-server
#mysql查看连接数SHOW VARIABLES like '%max_connections% ';# max_connections Maximum number of connectionsSHOW VARIABLES like '%connection% ';# processlist;# to judge by observing SQL.SHOW Full ProcesslistSHOW processlist;SHOW STATUS;SHOW processlist#show
MySQL installation goes to MySQL websiteClick ArchivesSelect version Download tarLinux installation MySQL database--tar.gz Package Decompression installation methodMySQL database has a variety of installation methods, this article only describes the
MySQL provides replication functionality starting from 3.23, which means that the DDL and DML operations of the main library are routed through the Binlog file to be executed from the library, keeping the main library and synchronizing the data from
-- SET foreign_key_checks= 0 -- delete data truncate table stocktbl; -- set Foreign_key_checks= 1 ; -- to see the value of the current foreign_key_checks, use the following command: select @ @FOREIGN_KEY_CHECKS ; How MySQL
[Client]# content in this directory is commonly used for localhost login, generally do not need to modifyPort = 3306# Port numberSocket =/var/lib/mysql/mysql.sock# socket file (localhost login will be generated automatically)[MySQL]# contains some
Understanding and operations of MySQL database transactions, mysql database transactions
A transaction is a series of operations performed as a single logical unit of work. These operations are submitted to the system as a whole, either executed or
How to configure multi-thread master-slave replication in Mysql 5.7 slave node, mysql5.7
Preface
Mysql multi-threaded replication is supported since Mysql 5.6. However, Mysql 5.6 has some drawbacks. Although multi-threaded replication is supported,
Implementation principle of Mysql master-slave synchronization and mysql master-slave Synchronization
1. What is mysql master-slave synchronization?
When the data in the master database changes, the changes are synchronized to the slave database in
Mysql create routine permission description, mysqlroutine
1. If you have the create routine permission, you can create procedure | function.
2. If you create procedure | function, mysql automatically grants it the alter routine and execute
About MySQL innodb_autoinc_lock_mode, innodbstrictmode
The innodb_autoinc_lock_mode parameter controls the behavior of locks when inserting data to a table in the auto_increment column;
By setting it, you can achieve a balance between performance
Solve the problem that mac cannot log on when using homebrew to install MySQL, homebrewmysql
If your computer is Mac, It is very convenient to install MySQL using homebrew, but there are still some problems;
First, make sure that you have installed
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