- Database Basics
- The database is the warehouse of storing data, realizes the data sharing, reduces the data redundancy, adopts the specific data type, has the high data independence, has the data control function.
- Table, is a two-dimensional array used to store data and manipulate the logical structure of data.
- Data types, integer data types, floating-point data types, exact decimal types, binary data types, date/Time data types, string data types.
- The primary key is used to uniquely label each record in the table. You can define a column or more primary keys. The primary key cannot be the same.
- Database Technology composition hardware, software together constitute
- database system, database, database management system (DBMS), database application.
- SQL language Structured Query Language, 3 main standard ANSI (US National Standards Agency) SQL; the sql,sql of different versions of each major vendor contains 4 sections, as follows:
- data Definition language (DDL): Drop,create,a Lter and other statements.
- Data Manipulation Language (DML): Insert,update,delete statement.
- Data Query Language (DQL): SELECT statement.
- Data Control Language (DCL): statements such as Grant,revoke,commit,roolback. The
- database provider
- ODBC Open database Connectivity develops databases that are interconnected and do not rely on the DBMS to handle all databases in a consensual manner.
- JDBC java Data Base connectivity for Java Applications
- ADO Microsoft has developed and designed to interact with the database under the. NET Framework.
- PDO php Data Object PHP accesses the interface defined by the database.
- What is MySQL: Small relational database management system
- Client-Server Software.
- MySQL version, MySQL Community Server Community Edition. MySQL Enterprise Server Corporate Edition Servers
- MySQL's advantages: fast speed, low price (free), easy to use, portability, rich interface, support query language, security and connectivity.
- New features of MySQL 5.7, support for JSON, performance and scalability, improved replication to improve usability performance, performance patterns provide better perspective, security, optimization, new GIS features, parcel InnoDB spatial index, use of Boost.geometry, colleagues improve integrity and standard compliance.
- MySQL Tools
- MySQL Command-line utility
- Server-side use of tool programs
- mysqld, SQL daemon, process.
- Mysqld_safe, startup scripts, recommended for UNIX and NetWare.
- Mysql.server Server Startup scripts
- Mysql_multi, a server startup script that can start or stop multiple servers installed on the system.
- Myisamchk, used to describe, inspect, optimize and maintain MyISAM tables.
- Mysqlbug, MySQL bug report script. Send a bug report to the MySQL messaging system.
- mysql_install_db, the script creates a MySQL authorization table with default permissions, which is usually performed once when MySQL is first installed on the system.
- Client Tools
- Myisampack A tool that compresses the MyISAM table to produce a smaller read-only table.
- MySQL, interactively input SQL statements or execute their command-line tools from a file in batch mode.
- Mysqlaccess Check the script that accesses the permissions of the hostname, user name, and database combination.
- Mysqladmin client programs that perform administrative operations, such as creating a cargo deletion database, overloading the authorization table, flushing the table to the hard disk, and reopening the log file, as well as indexing the version, process, and status information for the server.
- The Mysqlbinlog tool, which reads statements from binary logs, contains executed statements in a binary log file that can be used to help the system recover from a crash.
- Mysqlcheck, check the repair analysis and optimize the list of targets to maintain the client program.
- Mysqldump the client program that dumps the MySQL database to a file.
- Mysqlhotcopy a tool to quickly back up a myisam or ISAM table when the server is running.
- MySQL import: Use load DATA infile to import the file into the related table's client program.
- Mysqlshow, displays the database, table, column, and index-related client programs.
- PERROR Displays the system cargo MySQL error code meaning of the tool.
- MySQL Workbench Next-generation Visual Database design software, Visual database operating environment, the main functions are:
- Database design and model building.
- SQL Development replaces MySQL Query Browser
- Database management replaces MySQL Administrator
- Divided into Community Edition and commercial edition
- How to learn MySQL
- Cultivate interest.
- Consolidate the foundation.
- Learn new knowledge in a timely manner.
- Multi-time operation.
Mysql Database Basics Learning Note