MySQL base notes learning (1)

table of Contents

I. Introduction to Database

Two, mysql database

Third, the mysql client connection service

四、Navicat for mysql


I. Introduction to Database

1, the concept of

(1) Data: such as text, graphics, images, sound files and student records, these are data

(2) a database (DataBase): a container for storing data, data management methods and techniques

Composition (3) of the database system

2, database

(1) database management system (DataBaseManagementSystem: DBMS): mainly created (Create) data read (Read), update (Update) and delete (Delete) data easily

(2) database applications

(3) personnel: DBA, programmers

(4) relational database

Feature

  • Each column has a unique table column names, and all the data in that column are the same data type, in the order listed in the table does not matter
  • Each row represents a record in the table, the table can not be any two rows are identical, the order of rows in the table does not matter

Two, mysql database

1, the concept of

Small open source relational database

2, start and pause mysql service

  • Use the Windows Service window: right-click "My Computer" - Management - Services -mysql56
  • Use mysql command: Administrator privileges to run CMD-net stop / start mysql56

Third, the mysql client connection service

1, MySQL clients connect to the MySQL server

step:

(1) the user turns on MySQL database client (e.g., client comes MySQL, CMD command prompt)

(2) user input database connection information in the MySQL client authentication

2, MySQL server connection using the CMD

step:

  1. Configuration environment variable: Right-click "Computer" in the pop-up menu, click "Properties" to bring up the System Properties window, select the "Advanced System Settings" tab, click the "Environment Variables" button
  2. Double-click the find "Path" variable in the "System Variables" area, pop-up "Edit System Variable" Dialog Box
  3. Position the cursor to the last value of the variable text box, enter ";", then the MySQL bin directory "C: \ Program Files \ MySQL \ MySQL Server 5.6 \ bin" added to the end of the Variable Value text box
  4. mysql -h 127.0.0.1 -P 3306 -u root -pabc123; or mysql -h -P 3306 -uroot -pabc123 localhost;

四、Navicat for mysql

1, mysql connection service

  step:

(1) Click the "Connect" button, "New Connection" window will appear.

(2) the name of each input connection, MySQL server host address, service port number, user name and password, and click "OK" button.

(3) Click the "mysql-1" connected successfully logged MySQL server.

2, create / delete database

(1) Create: Right - New database - Enter the name

(2) Delete: To delete the selected database - right - Delete

3, import / export

(1) Import: New Database - Right Database - run sql file

(2) Export: select to export the database - right - dump sql file

Published 80 original articles · won praise 115 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_44893902/article/details/105104085