Deepin system installation MySQL tutorial and related operations1. Install MySQLsudo apt-get install mysql-server, you need to enter the password two times, the root account password.sudo apt-get install mysql-client, this does not know what to do
The following are for MySQL5.7 (ongoing update):
Use of a unqualified * with other items on the select list may produce a parse error. To avoid the problem, use a qualified tbl_name.* reference
It is not permissible to refer to a column alias
One of the prerequisite skills for database performance optimization when using indexes. In the MySQL database, there are four kinds of indexes: the focused index (primary key index), the normal index, the unique index, and the full-text index
Spring MySQL multi-data source configuration@Configuration Public classQuartzconfig {@AutowiredPrivateautowirejobfactory jobfactory; @Bean (Name= "Quartzdatasource") @ConfigurationProperties (prefix="Spring.datasource.quartz") PublicDataSource
Describe
Specification
Example
Link Database
Mysql-u User name-p password
Mysql-uroot-proot
Exit database
Exit,quit,ctrl+d
*
Show Database version
Select version ();
*
---restore content starts---One, MySQL storage engine?1. Engine definitionThe storage engine is how to access the data, how to index the stored data and how to update, query the data and other technology implementation methods. Because data is in
Method 1: Use the Set password commandFirst log in to MySQL.Format:mysql> set password for user name @localhost = password (' new password ');Example:mysql> set password for [email protected] = password (' 123 ');Method 2: Use MysqladminFormat:
1, Package download link: Package download password: ADVK2. Installing the JDK(1) See if the current Linux system has Java installed, enter Rpm-qa | grep Java; (2) Uninstall two OpenJDK (3) Upload JDK to Linux (4) Install the plugin of the JDK
2017-12-25# Configure host name full display vim/etc/BASHRC # Turn on checkwinsize shopt-s Checkwinsize ["$PS 1"="\\s-\\v\\\$"] && ps1="[\[email protected]\h \w]\\$"# Configure host name to be permanently active
Common operations for MySQL under Linux:
Display Databaseshow databases;
Select DatabaseUse database name;
Displaying tables in a databaseShow tables;
Show the structure of a data tabledescribe table name;
Show records in a tableSELECT *
First, database management system1. RDBMS relational database features① Two-dimensional table② Typical products Oracle traditional enterprise, MySQL is the Internet Enterprise products③ data access via SQL④ the greatest features, data security is
Difference:1. InnoDB support transactions, MyISAM is not supported, for INNODB each SQL language is encapsulated as a transaction by default, auto-commit, which affects speed, so it is better to put multiple SQL language between Begin and commit,
1, use distinct to weight (suitable for querying the total number of the whole table)There are multiple schools + teachers to contribute, need to count the total number of authorsSelectcount (author)As total from files each author has a lot of
★ Programming OptimizationOne, character encoding (MySQL console garbled output resolved: character_set_results= ' GBK ')Table/Column encoding settingsColumns: ALTER TABLE name change column list name data type character Set character set nameTable:
Go locally and use the cmd command to connect to MySQLMysql-uroot-prootExecute the following command to open Data remote link permission (the first root refers to the user; the second root refers to the password)' Root '@'%'root' with GRANT
I. BACKGROUNDResc table preserves the system's first-level, two-level functional modules, while preserving the function of the two-level function module pages, the PID defines the parent-child relationship.Want to through the Resc table, sorting out
One. Isolation level:The SQL standard defines 4 isolation levels, including specific rules that define which changes within and outside a transaction are visible and which are not.Low-level isolation levels generally support higher concurrency
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