우분투 MySQL 설치 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
6번째 줄: 6번째 줄:


==확인==
==확인==
<syntaxhighlight lang='console'>
<source lang='console'>
root@zetawiki:~# cat /etc/init.d/mysql
root@zetawiki:~# cat /etc/init.d/mysql
cat: /etc/init.d/mysql: No such file or directory
cat: /etc/init.d/mysql: No such file or directory
</syntaxhighlight>
</source>
<syntaxhighlight lang='console'>
<source lang='console'>
root@zetawiki:~# dpkg -l | grep mysql-server
root@zetawiki:~# dpkg -l | grep mysql-server
root@zetawiki:~# aptitude show mysql-server | grep ^State
root@zetawiki:~# aptitude show mysql-server | grep ^State
State: not installed
State: not installed
</syntaxhighlight>
</source>


==설치==
==설치==
<syntaxhighlight lang='console'>
<source lang='console'>
root@zetawiki:~# apt-get install mysql-server
root@zetawiki:~# apt-get install mysql-server
Reading package lists... Done
Reading package lists... Done
42번째 줄: 42번째 줄:
After this operation, 97.1 MB of additional disk space will be used.
After this operation, 97.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Do you want to continue? [Y/n]
</syntaxhighlight>
</source>
<syntaxhighlight lang='console'>
<source lang='console'>
... (생략)
... (생략)
</syntaxhighlight>
</source>
<syntaxhighlight lang='text'>
<source lang='text'>
Package configuration                                                           
Package configuration                                                           


62번째 줄: 62번째 줄:
   │                                                                        │   
   │                                                                        │   
   └─────────────────-───────────────────┘   
   └─────────────────-───────────────────┘   
</syntaxhighlight>
</source>
:→ MySQL의 root 계정 패스워드 지정
:→ MySQL의 root 계정 패스워드 지정
<syntaxhighlight lang='text'>
<source lang='text'>
   ┌───┤ Configuring mysql-server-5.5 ├───┐
   ┌───┤ Configuring mysql-server-5.5 ├───┐
   │                                              │
   │                                              │
75번째 줄: 75번째 줄:
   │                                              │
   │                                              │
   └───────────────────────┘
   └───────────────────────┘
</syntaxhighlight>
</source>
:→ MySQL의 root 계정 패스워드 재입력
:→ MySQL의 root 계정 패스워드 재입력
<syntaxhighlight lang='console'>
<source lang='console'>
... (생략)
... (생략)
160315 17:44:19 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
160315 17:44:19 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
86번째 줄: 86번째 줄:
Setting up mysql-server (5.5.55-0ubuntu0.14.04.1) ...
Setting up mysql-server (5.5.55-0ubuntu0.14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
</syntaxhighlight>
</source>


==확인==
==확인==
<syntaxhighlight lang='console'>
<source lang='console'>
root@zetawiki:~# /etc/init.d/mysql status
root@zetawiki:~# /etc/init.d/mysql status
  * /usr/bin/mysqladmin  Ver 8.42 Distrib 5.5.55, for debian-linux-gnu on x86_64
  * /usr/bin/mysqladmin  Ver 8.42 Distrib 5.5.55, for debian-linux-gnu on x86_64
105번째 줄: 105번째 줄:


Threads: 1  Questions: 581  Slow queries: 0  Opens: 189  Flush tables: 1  Open tables: 41  Queries per second avg: 12.361
Threads: 1  Questions: 581  Slow queries: 0  Opens: 189  Flush tables: 1  Open tables: 41  Queries per second avg: 12.361
</syntaxhighlight>
</source>
<syntaxhighlight lang='console'>
<source lang='console'>
root@zetawiki:~# netstat -ntlp | grep mysqld
root@zetawiki:~# netstat -ntlp | grep mysqld
tcp        0      0 127.0.0.1:3306          0.0.0.0:*              LISTEN      31551/mysqld       
tcp        0      0 127.0.0.1:3306          0.0.0.0:*              LISTEN      31551/mysqld       
</syntaxhighlight>
</source>
<syntaxhighlight lang='console'>
<source lang='console'>
root@zetawiki:~# mysql -uroot -p -e'show databases'
root@zetawiki:~# mysql -uroot -p -e'show databases'
Enter password: P@ssw0rd
Enter password: P@ssw0rd
120번째 줄: 120번째 줄:
| performance_schema |
| performance_schema |
+--------------------+
+--------------------+
</syntaxhighlight>
</source>


==같이 보기==
==같이 보기==

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)

이 문서에서 사용한 틀: