Database base operation is turned on using the tab completion function in the MySQL database 1)修改主配置文件/etc/mysql/my.cnf(mysql和mariadb目录有些不同) vim /etc/mysql/my.cnf [mysql] #no-auto-rehash auto-rehash
I. Introduction of the Database1, the origin of the databaseWhat we've learned before is that data is stored in a file for permanent preservation, and there is no doubt that a file can only exist on a single machine, which poses many problems:(1)
1, decompression mysql-5.7.11 compression package to the disk folder you want to store;2. Create a new Data folder in the folder and create a new My.ini file, and configure the My.ini file
My.ini file contents: Key points for configuring
CSDN Blog RelocationTo connect to a database:1. Under DOS window, under the Bin directory of the installation directory of the database, start the database service using the MYSQLD command, or start the MySQL service in the service of the computer.2.
1 syntax (help CREATE DATABASE)CREATE database name CharSet UTF8;2 Database naming rules:can be by letter, number, underscore, @, #, $ case-sensitive uniqueness cannot use keywords such as create select cannot use the number maximum 128 bits
Chapter 1 first MySQL1-1mysql Overviewinstallation and configuration of 1-2mysql1-3 start and stop MySQL service1-4 Landing and exit1-5 modifying the MySQL prompt1-6 modifying MySQL common commands and syntax specifications1-7 Operating
I. Introduction what is MySQL?
MySQL is a relational database management system developed by the Swedish MySQL AB company and is currently part of Oracle's product portfolio. MySQL is one of the most popular relational database management
Preface:In general, Chinese garbled characters are the cause of the mismatch between the client and the service-side character set. (The database table created by default does not specify a character set, all Latinl character sets, it is strongly
Log in to MySQL mysql-hlocalhost-uroot-proot exit MySQL exitYou must add a semicolon after each statement:--------------------------------------------Display Database Show DATABASES; see how many databases are on a MySQL serverCreate a database
SQL statementsSQL is an abbreviation for Structured query Language (Structured Query language). SQL is a set of operational commands built for the database and is a fully functional database language.When using it, only the "What to Do" command is
I. What is a databaseA database is a warehouse that organizes, stores, and manages data in accordance with its data structure.The full name of the SQL (Structured query Language) language is the Structured Query language. The database management
I. What is a databaseA database is a warehouse that organizes, stores, and manages data in accordance with its data structure.The full name of the SQL (Structured query Language) language is the Structured Query language. The database management
the most basic query:Show Status: View state, typically some counters. Show Global Status: View the overall state, the difference between show status and show global status is that the former is looking at the current conversation and is not valid
1.1 Landing database.Mysql-uroot-poldboy123-s/data/3306/mysql.sock1.2 View the database version and what the current logged-on user is.Select version (); Select User ();1.3 Create a database Oldboy for the GBK character set and view the complete
To modify the database character set:
ALTER DATABASE db_name DEFAULT CHARACTER SET character_name [COLLATE ...];
Change the default character set of the table and all character columns (Char,varchar,text) to the new
MySQL will appear in Chinese garbled reason is the following points:The 1.server itself sets the problem, for example still staying in Latin12.table language setting problem (including character and collation)3. The connection language setting
To create a database:Create DATABASE KALIBOY_GBK DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;Create DATABASE Kaliboy_utf8 DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;To display the database:show databases;Show databases like '%kaliboy% ';
Lab Environment:Local Windows 8.1Remote Connection Tool SECURECRT 7.3Linux distributions CentOS 6.7 x86_64 bit linux system, kernel version is 2.6.32-573 MySQL version mysql-5.5.321.1 MySQL Database Character Set introductionCharacter set is a set
1. Database Introduction1.1. IntroductionData is saved to "memory":Pros: Read and write very quicklyCons: Data loss due to program shutdownData is saved to "file":Pros: Data can be saved permanentlyCons: 1) Frequent IO operation, not high efficiency!
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