Welcome to the big Data and AI technical articles released by the public number: Qing Research Academy, where you can learn the night white (author's pen name) carefully organized notes, let us make a little progress every day, so that excellent
1. Create DATABASE Database-name2. Deleting a database Drop DB dbname3. Creating a new Table CREATE table tabname (col1 type1 [NOT NULL] [primary key],col2 type2 [NOT NULL],..)To create a new table from an existing table:A:CREATE table tab_new like
Sometimes when you start a MySQL database with a command mysql-u root-p or a server, it throws an exception and fails.The following are the anomalies that have been encountered.1, 1) Thrown exception: Error 2002 (HY000): Can ' t connect to local
First, the basic knowledgeA trigger is a specific action triggered by an event such as INSERT, UPDATE, and delete.When trigger conditions are met, the database system executes the program statements defined in the trigger.Second, createThe for every
If a commit is not executed in the stored procedure, the operations performed by the stored procedure are rolled back once the spring container has a transaction rollback. If the stored procedure executes a commit, the transaction for the database
First remove MySQL:sudo apt-get remove mysql-*
1
And then clean up the remaining data.-l |grep ^rc|awk ‘{print $2}‘ |sudo xargs dpkg -P
1
It will jump out of a dialog box and you can choose YesThen install MySQLsudo
MysqlKnowledge sectionSummary: MySQL is a real multi-threaded, multi-user SQL database system. With its high performance, reliability and ease of use, she has become the most popular database system in the server world. Prior to 2008, the MySQL
Select field 1, Field 2 from Table 1, table 2 where field group by Group Field having field order by field asc| DESC Limit M,nFirst, to inquire allSelect * from student;Select as from student;Select from student;Second, the conditions of inquiry1
When using MySQL Workbench or navicat to connect to the server's MySQL, sometimes there will be access denied,Because no other user rights are assigned to MySQL, you can only log on locally, so set it up.Settings are as follows:Open the MySQL
To optimize a query, we need to know exactly where this query's performance bottleneck is, is it consuming too much CPU, or does it require too many IO operations? To be able to understand this information clearly, in MySQL 5.0 and the MySQL 5.1
Index Overridesmeans that if the column of the query is exactly part of the index, then the query needs to be done only on the index file, without having to go back to the disk and find the data. This query is very fast, called "Index overlay", less
MySQL optimization: three simple minor adjustments to optimize mysql Adjustment
I don't want to be an expert DBA, But when I optimize MySQL, I respect the 80/20 principle, specifically by simply adjusting some configurations, you can squeeze out
MySQL database index OverviewI. Meanings and features of indexes are independent and stored on disks.Database StructureThey includeReference pointer of all records in the data table. The index is used to quickly find rows with a special value in one
MySQL common storage engine introduction and parameter settings tuning, mysql Tuning
MyISAM
Features:1. Concurrency and lock level2. Repair of Table CorruptionCheck table tablenameRepair table tablename3. Index types supported by MyISAM tables①
MySQL series-Chapter 1: MySQL introduction and installation, mysql Chapter 11. Database Introduction1. What is Database? ''
Simply put, a data warehouse is organized and stored according to a certain data structure , we can use a variety of methods
MySQL database Constraints
Database constraints:A constraint is a data validation rule enforced on a table. It is mainly used to ensure data integrity in the database.In addition, when the data in the table is mutually dependent, the related data
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