1. Mysql 접속하기

1) telnet 접속후 아래의 명령을 수행합니다.

[abc@ns1 abc]$ /usr/local/mysql/bin/mysql -u[DB ID] -p [DB]
Enter password: [DB 패스워드]

ex) DB 명 : abcDB
DB ID : abc
DB pass : 1234

[abc@ns1 abc]$ /usr/local/mysql/bin/mysql -uabc -p abcDB
Enter password: 1234 (입력이 보여지지 않음)

2) 접속 확인

mysql 접속하면 아래와 같은 프롬프트 상태가 됩니다.

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 100299 to server version: 3.22.32

Type 'help' for help.

mysql>

위와 같은 상태가 되면 DB 접속에 성공한 것입니다.

3) 접속 종료 하기

mysql> exit