The picture is omitted.This article transferred from: http://blog.sina.com.cn/s/blog_767d65530101861c.html1. Create Student and score tablesCREATE TABLE Student (ID INT (Ten) is not NULL UNIQUE PRIMARY KEY,Name VARCHAR () is not NULL,Sex VARCHAR (4),
First, background knowledge1. A lock is a mechanism by which a computer coordinates multiple processes or threads concurrently accessing a resource.A, lock classification.| Shared lock (read lock): During a lock, multiple users can read the same
Remote access not available, user not authorized for remote accessIf you only authorize [email protected], then remote access will not be able to connect, you need to authorize:
MySQL > GRANT all privileges on * * to ' root ' @ '% ' identified
Requirements: Other items, code buckle over, the database is also taken over, but the database is empty table, a total of 700 tables, the demand is to add false data to the table, so that it can run.This is the code implementation:1. Database
MySQL View constraints, add constraints, delete constraints, add columns, modify columns, delete columns
View field information for table: DESC table name;
View all information about the table: Show create table table name;
Add
ObjectiveSorting is a basic function in a database, and MySQL is no exception. The order BY statement allows the user to sort the specified result set, in fact, not only the order BY statement, the Group by statement, the distinct statement
MySQL table design good and bad directly related to the fundamental performance optimization, general table design in order to maintain a simple reduction of storage and other factors will follow the normalization of the rules, in order to query the
I. Introduction of the Database1. Structured Query Language (Structured Query language)2, SQL: industry standard. (supported by each database vendor)Sql-server: The standard has been extended. TSQL dialectOracle: Scaling standards.
Kingshard is a high-performance MySQL proxy project developed by go, kingshard in satisfying basic read/write separation functions,Committed to simplifying MySQL sub-Library table operations, allowing DBAs to easily and smoothly implement MySQL
DML statement:DML operations are operations that record tables in a database, primarily including insert (insert), UPDATE, delete (delete), and check (select) for table records, which are the most frequently used by developers. They are described in
Source: http://blog.sina.com.cn/s/blog_640738130100tzeq.htmlWhen a piece of data reaches millions of, you spend more time searching for it, and if you have a joint query, I think it's possible to die there. The purpose of the sub-table is to reduce
This example runs on MySQL version 5.0 and above. The simple format that MySQL gives to user rights commands can be summarized as:Grant permissions on database object to userA grant general data user, the right to query, insert, UPDATE, delete all
Not everyone needs a innodb engine, although it makes up for MySQL's lack of transactional support, but its disk performance has always been a concern.In addition to the older PHP system, mostly using the MyISAM engine in MySQL to build a table, it
One, close firewall and SELinux[[Email protected] raddb]# service iptables stop[Email protected] raddb]# Vim/etc/selinux/configSelinux=disabledSecond, installation Freedius[[email protected] RADDB] #yum install freeradius*-yThird, need to install
1. Display Databaseshow databases;2. Select DatabaseUse database name;3. Display the tables in the databaseShow tables;4, display the structure of the data tabledescribe table name;5. Display the records in the tableSELECT * FROM table name6. Build
Recently looked at memcached cache MySQL, after a period of research • Write your own test methods for beginners like meMy environment is Nginx + PHP-FPM + APC + MySQLCompiling and installing memcachedTar zxvf memcached-1.4.0.tar.gzCD memcached-1.4.0
MySQL transaction processing and mysql transaction
1 -- -------------------------------------------------------------------------------- 2 -- Routine DDL 3 -- Note: comments before and after the routine body will not be stored by the server 4 --
Mysql Chinese garbled solution, mysql garbled Solution
Problem description:Mysql displays garbled characters when inserting Chinese characters "? "No.
Solution:
Modify the my. ini configuration of
Install and upgrade mysql to the new version (5.1-5.7) in linux, and mysql 5.7-
If you need to update the mysql version on the linux server from 5.1 to 5.7 today, the following content will be used as a record and will be provided with the
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