阅读背景:

MySQL数据库基础操作(一看就会)

来源:互联网 
MySQL数据库基础操作

SQL分类:

DQL:数据查询语言 代表关键字:select DML:数据操纵语言 代表关键字:insert,delete,update DDL:数据定义语言 代表关键字:create,drop,alert DCL:数据控制语言 代表关键字:grant,revoke TCL:事务控制语言 代表关键字:commit,rollback 一、常用命令 (一)启动MySQL数据库 net start mysql G:\MySQL\mysql-5.7.28-winx64\mysql-5.7.28\bin>net start mysql MySQL 服务正在启动 . MySQL 服务已经启动成功。 (二)关闭MySQL数据库 net stop mysql G:\MySQL\mysql-5.7.28-winx64\mysql-5.7.28\bin>net stop mysql MySQL 服务正在停止. MySQL 服务已成功停止。 (三)登录用户 G:\MySQL\mysql-5.7.28-winx64\mysql-5.7.28\bin>mysql -u root -p Enter password: ************** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.28 MySQL Community Server (GPL) Copyright (c) 2000, 2019, 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; mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.16 sec) DQL:数据查询语言 代表关键字:select DML:数



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: