PGoCareerGoCareer prep tools
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

SQL · Theory

Show Databases

← All stacks

Theory

10/439

Show Databases

SHOW DATABASES; lists every database this user can see. You will also see system ones like mysql, information_schema, performance_schema, sys — don’t DROP those.

SHOW CREATE DATABASE college; shows how it was created (charset). For tables: SHOW TABLES; after USE.

Trap — dropping mysql or information_schema because they ‘look extra’. That breaks the server.

On the example next to this theory: Show Databases — cREATE DATABASE makes a schema; USE selects it for following statements.

Exam tip

SHOW DATABASES; never drop mysql or information_schema.

Show Databases — sample query

-- Database admin (MySQL syntax; run on MySQL server)
-- CREATE DATABASE shop;
-- USE shop;
-- SHOW DATABASES;
SELECT 'Use CREATE/USE/SHOW on MySQL server' AS tip;

Show Databases — cREATE DATABASE makes a schema; USE selects it for following statements.

Short notes

  • DefSHOW DATABASES; lists schemas you can see.
  • RuleIgnore mysql / information_schema — do not drop them.
  • TrapDROP on a system database.

Questions

1

What does SHOW DATABASES do?

10 / 439

P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.