笔记:Mysql数据库删除报错 1008

说明

sql 复制代码
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
| test               |
+--------------------+
5 rows in set (0.02 sec)

数据库存在

删除报错

sql 复制代码
mysql> drop database test;
ERROR 1008 (HY000): Can't drop database 'test'; database doesn't exist

解决方案

sql 复制代码
drop database if exists test;
相关推荐
jnrjian1 分钟前
oraasmaudit Oracle ASM
数据库·oracle
A15362555 分钟前
WMS 智能仓情系统推荐:如何实现仓库全局可视与数字化管控
运维·数据库·人工智能
又是重名了17 分钟前
大数据量导出 优化方案多版 第五版
数据库·优化·导出·大数据量
Data_Journal18 分钟前
如何使用 Python 抓取 Google Flights:分步指南
大数据·开发语言·数据库·python·scrapy
深藏bIue22 分钟前
PostgreSQL 冻结与死元组回收
数据库·postgresql
滨哥GPT36 分钟前
Codex修改数据库后项目启动失败怎么办?Migration、Schema与数据结构排查
数据库·ai编程·开发工具·schema·codex
戴西软件1 小时前
国内有哪些数据轻量化格式转换软件?
数据库·算法·安全·信息可视化·自动化·rpa
λqaq71 小时前
MySQL 数据库基础(2)约束、用户权限、远程连接、外键与 TCP/UDP 理解
linux·数据库·python·tcp/ip·mysql
丰锋ff1 小时前
基于C++11的数据库连接池
数据库
TDengine (老段)1 小时前
TDengine 应用案例 — 工业大数据与智能制造
大数据·数据库·制造·时序数据库·tdengine·涛思数据