法1直接使用phpstudy 安装

2安装mysql安装

简单sql语法

连接数据库

命令行

  1. PS E:\phpstudy1618\phpsd16\MySQL\bin> .\mysql.exe -h 127.0.0.1 -u root -p
  2. Enter password: ****
  3. Welcome to the MySQL monitor. Commands end with ; or \g.
  4. Your MySQL connection id is 5
  5. Server version: 5.5.53 MySQL Community Server (GPL)
  6. Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  7. Oracle is a registered trademark of Oracle Corporation and/or its
  8. affiliates. Other names may be trademarks of their respective
  9. owners.
  10. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  11. mysql>

使用DG
image.png

增

删

改

查