아주 기초적인 내용이지만 다시한번 포스팅합니다.
mysql -u(계정) -p (엔터입력)
Password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4382
Server version: 5.5.44 MySQL Community Server (GPL) by Remi
Copyright (c) 2000, 2015, 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>
위와 같이 mysql에 접속된 것을 확인 할 수 있다.
mysql> create database newdatabase;
Query OK, 1 row affected (0.00 sec)
mysql> use newdatabase; #새로 생성된 데이터베이스를 사용한다.
Database changed
create table newTable (
no varchar(50) null,
id int null,
pw varchar(50) null
)
테이블이 생성되었습니다.