文章目录
MySQL数据库的基本操作和基于MySQL数据库基本操作的综合实例项目
1、 登入MySQL数据库
登入MySQL数据库:
C:\WINDOWS\system32>MySQL -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 25
Server version: 8.0.29 MySQL Community Server - GPL
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
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>
1、创建数据库
创建数据库是在系统磁盘上划分一块区域用于数据的存储和管理。
如果管理员在设置权限的时候为用户创建了数据库,则可以直接使用,否则,需要自己创建数据库。
MySQL中创建数据库的基本SQL语法格式为:
CREATE