본문 바로가기
IT 관련 공부/이것 저것 공부

[mySQL] 데이터 들어갔나 확인하는법

by 박나무 2022. 1. 20.
반응형

C:\Users\SUN>mysql -V          <-명령어 입력
mysql  Ver 8.0.27 for Win64 on x86_64 (MySQL Community Server - GPL)

 

잘 설치됐나 버전 확인하고!

C:\Users\SUN>mysql -u root -p       <-명령어 입력
Enter password: ****         <-비밀번호 입력
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.27 MySQL Community Server - GPL

Copyright (c) 2000, 2021, 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> show database;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database' at line 1
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| bank               |        <-- 넣은 데이터 확인!
| classicmodels      |
| information_schema |
| library            |
| mysql              |
| performance_schema |
| sakila             |
| sample             |
| sys                |
| testdb             |
| world              |
+--------------------+
11 rows in set (0.05 sec)

mysql>

반응형

댓글