2014. 11. 19. 10:07
- MySQL 기본적인 사용



► mysql에 접속한 상태에서 mysql 데이터베이스를 사용하기 위하여 다음의 명령어를 사용합니다.

mysql -u root -p 

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.5.40-0ubuntu1 (Ubuntu)

Copyright (c) 2000, 2014, 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> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

❉ 위의 두가지 명령을 "mysql -u root -p mysql"이라고 입력하여 한번에 처리도 가능합니다.


 변경 내용을 반영하기 위해서는 다음의 명령을 실행해야 합니다.

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec) 



'Tip > 우분투' 카테고리의 다른 글

MySQL 기본적인 사용  (0) 2014.11.19
MySQL 원격접속 허용하기  (0) 2014.11.19
Openfire (XMPP) 설치  (1) 2014.11.19
ant를 ubuntu에 설치해봅시다.  (0) 2014.11.18
MySQL 유저관리  (0) 2014.11.12
Posted by 모바일헌터