"MySQL 버전 확인"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 6개는 보이지 않습니다)
2번째 줄: 2번째 줄:


==방법 1: mysql==
==방법 1: mysql==
<source lang='dos'>
<source lang='console'>
[root@jmnote ~]# mysql --version
[root@zetawiki ~]# mysql --version
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1
</source>
</source>
9번째 줄: 9번째 줄:


==방법 2: mysql 접속==
==방법 2: mysql 접속==
<source lang='dos'>
<source lang='console'>
[root@jmnote ~]# mysql -u testuser -p
[root@zetawiki ~]# mysql -u testuser -p
Enter password:  
Enter password:  
Welcome to the MySQL monitor.  Commands end with ; or \g.
Welcome to the MySQL monitor.  Commands end with ; or \g.
27번째 줄: 27번째 줄:
</source>
</source>


<source lang='dos'>
<source lang='console'>
mysql> select version();
mysql> select version();
+-----------+
+-----------+
36번째 줄: 36번째 줄:
1 row in set (0.00 sec)
1 row in set (0.00 sec)
</source>
</source>
<source lang='dos'>
<source lang='console'>
mysql> SHOW VARIABLES LIKE 'version';
mysql> SHOW VARIABLES LIKE 'version';
+---------------+--------+
+---------------+--------+
47번째 줄: 47번째 줄:


==방법 4: yum==
==방법 4: yum==
<source lang='dos'>
<source lang='console'>
[root@jmnote ~]# yum list installed mysql*
[root@zetawiki ~]# yum list installed mysql*
... (생략)
... (생략)
Installed Packages
Installed Packages
54번째 줄: 54번째 줄:
mysql-devel.x86_64                                        5.1.47-1.fc11                                        @updates
mysql-devel.x86_64                                        5.1.47-1.fc11                                        @updates
mysql-libs.x86_64                                          5.1.47-1.fc11                                        @updates
mysql-libs.x86_64                                          5.1.47-1.fc11                                        @updates
mysql-server.x86_64                                        5.1.47-1.fc11                                        @update
mysql-server.x86_64                                        5.1.47-1.fc11                                        @updates
</source>
</source>
:→ 5.1.47
:→ 5.1.47


==방법 5: rpm==
==방법 5: rpm==
<source lang='dos'>
<source lang='console'>
[root@jmnote ~]# rpm -qa | grep ^mysql
[root@zetawiki ~]# rpm -qa | grep ^mysql
mysql-5.1.47-1.fc11.x86_64
mysql-5.1.47-1.fc11.x86_64
mysql-libs-5.1.47-1.fc11.x86_64
mysql-libs-5.1.47-1.fc11.x86_64
69번째 줄: 69번째 줄:


==방법 6: mysqladmin==
==방법 6: mysqladmin==
<source lang='dos'>
<source lang='console'>
[root@jmnote ~]# mysqladmin -uroot -pP@ssw0rd version | grep ^Server
[root@zetawiki ~]# mysqladmin -uroot -pP@ssw0rd version | grep ^Server
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Server version 5.6.17
Server version 5.6.17
80번째 줄: 80번째 줄:
*[[아파치 버전 확인]]
*[[아파치 버전 확인]]
*[[MySQL 환경변수 확인]]
*[[MySQL 환경변수 확인]]
*[[MySQL Uptime 확인]]
*[[mysqladmin]]
*[[mysqladmin]]


==참고 자료==
==참고==
*http://ddoong2.com/3
*http://ddoong2.com/3


[[분류: MySQL]]
[[분류: MySQL]]
[[분류: 버전]]
[[분류:버전 확인]]

2018년 1월 11일 (목) 21:09 기준 최신판

MySQL 버전 확인

1 방법 1: mysql[ | ]

[root@zetawiki ~]# mysql --version
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1
→ 5.0.77

2 방법 2: mysql 접속[ | ]

[root@zetawiki ~]# mysql -u testuser -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 810996
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

3 방법 3: SQL[ | ]

SELECT VERSION();
SHOW VARIABLES LIKE 'version';
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.0.77    | 
+-----------+
1 row in set (0.00 sec)
mysql> SHOW VARIABLES LIKE 'version';
+---------------+--------+
| Variable_name | Value  |
+---------------+--------+
| version       | 5.0.77 |
+---------------+--------+
1 row in set (0.00 sec)

4 방법 4: yum[ | ]

[root@zetawiki ~]# yum list installed mysql*
... (생략)
Installed Packages
mysql.x86_64                                               5.1.47-1.fc11                                        @updates
mysql-devel.x86_64                                         5.1.47-1.fc11                                        @updates
mysql-libs.x86_64                                          5.1.47-1.fc11                                        @updates
mysql-server.x86_64                                        5.1.47-1.fc11                                        @updates
→ 5.1.47

5 방법 5: rpm[ | ]

[root@zetawiki ~]# rpm -qa | grep ^mysql
mysql-5.1.47-1.fc11.x86_64
mysql-libs-5.1.47-1.fc11.x86_64
mysql-server-5.1.47-1.fc11.x86_64
mysql-devel-5.1.47-1.fc11.x86_64
→ 5.1.47

6 방법 6: mysqladmin[ | ]

[root@zetawiki ~]# mysqladmin -uroot -pP@ssw0rd version | grep ^Server
Warning: Using a password on the command line interface can be insecure.
Server version		5.6.17

7 같이 보기[ | ]

8 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}