Transfer from http://sunxiaqw.blog.163.com/blog/static/990654382013430105130443/exists on the appearance with loop-by-article query, each query will look at the exists conditional statement, when the conditional statement in exists can return the
MySQL Data Security systemHttp://www.yunweipai.com/archives/23036.htmlNext I will introduce to you from four aspects, how the database through some configuration to achieve data security.
Stand-alone security
Cluster security
Backup
1. Database operations:1.1 Creating databases: Create databases A. Creating a database named Oldboy_defaultmysql> CREATE DATABASE Oldboy_default;B. View the statement that built the library:Mysql>show CREATE DATABASE Oldboy_default;C. Establishment
This article transferred from: http://www.cnblogs.com/zbseoag/archive/2013/03/19/2970004.html1. Integral type
MySQL data type
Meaning (Signed)
tinyint (m)
1 byte range ( -128~127)
smallint (m)
1. First you need to download the package that needs to be compiled650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/08/74/wKiom1nh76TD4WjcAABhNTQ5Uf0482.png "style=" float : none; "title=" 1.PNG "alt=" Wkiom1nh76td4wjcaabhntq5uf0482.png "/
Reclaim Table SpaceWhen a data table deletes data in large quantities, it uses the optimize table for space reclamation, creating a new data table and then copying the contents to the new table:OPTIMIZE TABLE "TABLENAME";InnoDB to be rebuilt with
Download Binary installation packageBecause the binary installation package is already compiled, the path is already defined, the path is specified when unpacking, the default is:/usr/local/directory:TARXVFMARIADB Bag c/usr/local/650) this.width=650;
1 A, B two tables altogether select * from Tbl_emp a inner joins tbl_dept b on a.deptid = B.id;2 A, b two tables shared +a unique select * FROM Tbl_emp a LEFT join Tbl_dept b on a.deptid = B.id;3 A, b two table unique SELECT * FROM Tbl_emp a right
1. Syntax: SELECT field list FROM clause [WHERE clause][group by clause] [ORDER BY clause][having clause][limit clause];Annotations:The 1.where clause evaluates the result returned by the FROM clause, and when the condition is met, the row record is
Reason:A strict check of the new version of MySQL on the field. after MySQL is usually installed under Linux, the default Sql_mode value is empty, in which case MySQL performs an irregular check, and if the length of the field to be inserted
One, one way and two can be, suggested way two.1. Modify table Datamysql>update User Set = ' % ' where User = ' Root ' Privileges; Refresh Permissions2. Execute Authorization Statement Grant mysql>grant all privileges on * . Span style= "COLOR:
MySQL Learning summary----data manipulation=================================================================================First, the operation of the data==============================================================================================
MySQL Learning summary----Index=================================================================================First, the index==========================================================================================================================
These two days are doing code optimization. Requires 100,000, millions, or more of the data. This time obviously a piece of add is not realistic, and then use the loop to add the statement.in the first step, we need to build a test database
How to view all authorized usersSELECT DISTINCT CONCAT (' User: ', user, ' @ ', host, '; ') as query from Mysql.user;Revoke permissions that have been given to the MySQL user.Revoke is similar to Grant's syntax, just replace the keyword "to" with
Mysql5.6 quick installation and parameter explanation, mysql5.6 parameter explanationI. Required Software
Software name
Version
Current Environment
Administrator account/Password
Mysql
5.6
Install yum
CentOS6.7
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