今天開始學習mysql,有一位老師推薦一本經典的入門書籍《MySQL必知必會》,讓我把這本書通讀幾遍,就能對數據庫有個很好的入門了。網上有文字版,感興趣的小夥伴能夠找來閱讀。python
書封面長這樣:mysql
數據庫概念的簡要介紹sql
數據庫(database)保存有組織的數據的容器(一般是一個文件或一組文件)數據庫
容易混淆的地方數據庫軟件與數據庫:編程
數據庫軟件應稱爲DBMS(數據庫管理系統)。數據庫是經過DBMS建立和操縱的容器。數據庫能夠是保存在硬設備上的文件,但也能夠不是。安全
咱們常常經過各類數據庫鏈接工具好比Navicat for mysql(這個好評普遍)、mysql workbench(這個是官方提供的,用不習慣)等,在編程語言裏,好比python(我只會這一門),能夠安裝pymysql模塊,調用相關方法來訪問數據庫。也能夠經過交互界面來訪問好比下面這樣:scrapy
不過排版就不怎麼友好了,之前在一個項目上,客戶爲了保證生產環境數據安全,不讓安裝鏈接工具,咱們操做數據庫只能經過交互界面,頭都大了。數據庫設計
PS C:\Users\Administrator> mysql -uroot -p123456 mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.7.20-log MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +---------------------+ | Database | +---------------------+ | information_schema | | learn_scrapy | | love_learning | | mysql | | mysql_bi_zhi_bi_hui | | performance_schema | | sakila | | sys | | world | | zabbix | +---------------------+ 10 rows in set (0.00 sec) mysql>
數據庫中的每一個表都有一個名字,用來標識本身。此名字是惟一的,這表示數據庫中沒有其餘表具備相同的名字。編程語言