今天开始学习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>
数据库中的每一个表都有一个名字,用来标识本身。此名字是惟一的,这表示数据库中没有其余表具备相同的名字。编程语言