# IT #/Linux

# linux mysql , MariaDB 버전확인 방법 #

국철 2018. 2. 1. 15:31
반응형


[root@woo ~]# mysql --version

mysql  Ver 15.1 Distrib 10.0.30-MariaDB, for Linux (x86_64) using readline 5.1



[root@woo ~]# mysql -uroot -p

Enter password: 

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 41489

Server version: 10.0.30-MariaDB MariaDB Server


Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> use mysql

Database changed

MariaDB [mysql]> 

MariaDB [mysql]> select version();

+-----------------+

| version()       |

+-----------------+

| 10.0.30-MariaDB |

+-----------------+

1 row in set (0.00 sec)



MariaDB [mysql]> show variables like 'version';
+---------------+-----------------+
| Variable_name | Value           |
+---------------+-----------------+
| version       | 10.0.30-MariaDB |
+---------------+-----------------+
1 row in set (0.00 sec)



[root@woo ~]# mysqladmin -uroot -p패스워드 version | grep ^Server
Server version 10.0.30-MariaDB



반응형