Database
커맨드상에서의 MySQL 원격 접속
Steven J.S Min
2014. 9. 29. 11:23
커맨드상에서의 원격 접속 명령어는 다음과 같은 형식을 갖는다.
mysql@cosmos:~$ mysql -u [사용자명] -h [호스트명 또는 IP] -p [접속하려는DB]
E.G
mysql@cosmos:~$ mysql -u ***** -h ***.***.***.***. -p ******
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 61
Server version: 5.6.19-0ubuntu0.14.04.1 (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>