MySQL learning notes _ overview of MySQL database management system, learning notes _ learn MySQLZookeeper
1. MySQL Architecture
C/S: client/server Architecture
MySQL DBMS (Data Bank Management System): Database Management System
Client server --->
Common Oracle Data Dictionary tables view the default tablespace of the current user
SQL> select username, default_tablespace from user_users;
View the role of the current userSQL> select * From user_role_privs;
View the system and table-level
MySQL learning notes _ overview MySQL database management system overview bitsCN.com
1. MySQL architecture
C/S: client/server architecture
MySQL DBMS (Data Bank Management System): database Management System
Client server ---> database ---> Data
View the default tablespace of the current user
SQL> select username, default_tablespace from user_users;
View the role of the current userSQL> select * From user_role_privs;
View the system and table-level permissions of the current userSQL>
How to use SQL Injection for database explosion, SQL Injection for database explosionWhat can SQL injection do?
I introduced the basic principles and experimental methods of SQL Injection in "SQL Injection basics". Next I will ask what SQL injection
MySQL commandFirst, the preliminary order:show databases; # view current MySQL has that data, the root directory has those foldersCreate database name; # Create a folderUse database name; # Use the selected database to enter the directoryShow tables;
Operation of the data table Tables are inseparable from fields. New Data Sheet1 Create Table [if not exists] Table name ( 2 34 field N data type -- The last line does not need to add commas 5 )[ table Options ]; If not exists: if the
Mysql-u User name-p*****//Enter databaseUse database name;//Select DatabaseShow databases;//View Databasedrop database name;//delete databasesShow create database data name;//View the statement that created the databasesCreate DATABASE Database name
Privilege control mechanismFour tables : User db Tables_priv Columns_priv privilege privilegesMysqlFrom User\gMysqlFrom db\gMysqlFrom Tables_priv\gMysql1. User authenticationView Mysql.user Table2. Authority authenticationTake SELECT permission as
--View All tables under this user in the ORACLE databaseSELECT table_name from User_tables;--View All tables under All users in the ORACLE databaseSelect User,table_name from All_tables;--View all columns under this user in the ORACLE databaseSelect
Database database additions and deletions changeAdd to
Insert into info (name,phone) VALUES (' Zhangsan ', ' 110 ')
Delete
Delete from info where name= ' Zhangsan '
Modify
Update info Set phone = ' 999 ' WHERE
-----MySQLMySQL Getting Started command 1:mysql connection mysql-h host-u username-p-h if not written, the default is localhost2: View all Databases show Databases;3: Select library use dataBasename4: View all tables in a library show tables;5: View
Mysql Single Table, mysql Single Table maximum number of rows
Create and delete DatabasesBlack window to start the Database Service: net start mysqlDisable Database Service: net stop mysql
Create a databaseUse the keyword create
Basic Mysql operations
Today, I finally reviewed the Knowledge System of the MySQL database and sorted out some common basic operations below.
I. MySQL server startup and Shutdown
1. Start the MySQL server
Start-> Run and enter "cmd", and then enter
Mysql database binary installation and basic entry operations, mysql binary
Mysql Databases have a lot of knowledge. It takes the same effort and time to learn linux. The small Editor also only has some skins to share with you ~1. Install MySQL
(1)
I. INTRODUCTION to psql is a PostgreSQL command line interactive client tool, similar to the command line tool sqlplus: 1 in Oracle allows you to interactively type SQL or commands, then they are sent to the PostgreSQL server, and then the SQL or
Simple mysql database operations required in php. Simple mysql database operations required in php, phpmysql1. database connection 1.1 use the windows command line to connect to the database server. Several DOS commands are not used in php in the
Database downtime migration oracle10g instance1. Operation 1.1 of the original database view original configuration 1.1.1 view User Permissions
View user system permissions:
SQL> select * from user_sys_privs;
View User Roles
SQL> select * from
I. Download. Here we use the green decompressed version.Http://mirror.services.wisc.edu/mysql/Downloads/MySQL-5.1/mysql-noinstall-5.1.32-win32.zip2. Configure MySQL Parameters1. decompress the green software to D: \ AppServ \ MySQL.Set system
Common Sqlplus commands are as follows: 1. login system user:Sqlplus and then enter the system user name and password Log on to another user:Conn user name/password; 2. Create a tablespace Create tablespace space name Datafile 'C: "Space name' size
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.