Database managementLog in to MySQL[[email protected] conf]# mysql -u root -pEnter password: Welcome to the MySQL monitor. View database server all databasesmysql> show databases;+--------------------+| Database |+--------------------+|
SQL is a very important programming language for manipulating relational databasesStructure Query Language since it is a language that can be programmed naturally, the classification of SQL can be divided into DDL,DML,DCL according to the different
mysql> INSERT into student values (162111,'Zhou Yi','male', +,'CS'); ERROR1062(23000): Duplicate Entry'16211160127' forKey'PRIMARY'(duplecate for repetition) primary key primary key cannot be inserted with the same field as Uniqueerror1025(HY000):
MySQL Common terminal commands--Link DatabaseMysql-uroot-pmysql--Don't show password * * * *Mysql-uroot-pPassword--Exit the databaseQuit/exit/ctrl + DExit (Remember this) * * * * *Quit/exit Ctrl+d--The SQL statement needs a semicolon at the
MySQL user, library, table operation syntax about the user's syntax查看当前系统里的用户:select user,host from mysql.user;查看当前登陆的用户select user();创建用户语法:create user ‘用户‘@‘主机‘ identified by ‘密码‘;示例:create user ‘anuo‘@‘localhost‘ identified by ‘123‘创建用户并授权grant
One, Operation folder (operation to the library): IncreaseCreate Database db1 charset UTF8;Check# View the database you are currently creating show CREATE Database db1;# view all databases show databases;ChangeALTER DATABASE DB1 CharSet GBK;By
I. Introduction to the Database1. DatabaseA database (DATABASE,DB) is a collection of organized, shareable data that is stored in a computer for a long period of time. The data in the database is organized, described and stored according to a
CharSet Modify CharSet engine character set modify the character set engines # # Operations folder (library) code as follows: SHOW CREATE database db_name; add CREATE Database DB1 CharSet UTF8; check show databases;show CREATE database DB1; change
We can understand the rationale behind mysqldump by opening the general log and looking at the commands executed during mysqldump full library backup.Open General Logmysql> set global general_log=on;Where the general log's storage path can be viewed
1.1mysql Character Set Knowledge:Overview: A character set is a set of text symbols and their encoding, comparison rules. The MySQL database character set includes both the character set (character) and the proofing Rules (collation) concepts. Where
First, view all databasesMysql> Show databases;+--------------------+| Database |+--------------------+| information_schema | | mysql | | performance_schema | | WMS |+----------- ---------+Among them, the first
The following are used on the command line under the Windows 64-bit operating system.Before studying, let's explain what some of the symbols in the MySQL syntax format mean:(1) The brackets ([]) indicate that they exist or do not exist, and are
For MySQL backup, it can be divided into the following two kinds:1. Cold Standby2. Hot standbyAmong them, cold, as the name implies, is to turn off the database, using operating system commands to copy database related files. The hot standby refers
1) Database classification2) System functions3) Create a database4) Select Database5) Build a table statement6) Inserting data7) Delete the data from the user delete the database list8) Modify table data9) Query data10) User AuthorizationOne) Show
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.
Basic concepts:A character (Character) is the smallest of the ideographic symbols in a human language. such as ' A ', ' B ' and so on;Encoding (Encoding) is given a series of characters, assigning a numeric value to each character, and representing
Add and delete change to learn first!1: Numbers without double quotes2. Strings must be double-quoted3:UpdateAll lines of words: UpdatePointing line: UpdateWho you want to update is the line you want to change!There are a few key questions to keep
The common MySQL show commands are as follows:1, show databases; Show all databases in MySQL2, show tables [from databases]; Displays the names of all tables in the current database3, Show columns from tables; Displays the names of the columns in
##################################################################################Start off and Login##################################################################################1 Single InstanceMysqld_safe--user=mysql &
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.