Four ways to view the MySQL version

Source: Internet
Author: User
Tags log mysql mysql version socket version linux
Rookie Lecture: Four ways to view the MySQL version

1: Under the terminal: Mysql-v. The following is a code fragment:

[Shengting@login ~]$ Mysql-v

MySQL Ver 14.7 distrib 4.1.10a, for Redhat-linux-gnu (i686)

2::mysql> status in MySQL;


The following is a code fragment:


mysql> status;

--------------

MySQL Ver 14.7 distrib 4.1.10a, for Redhat-linux-gnu (i686)

Connection id:416

Ssl:not in use

Current Pager:stdout

Using outfile: '

Using delimiter:;

Server Version:3.23.56-log

Protocol version:10

Connection:localhost via UNIX socket

Client characterset:latin1

Server characterset:latin1

UNIX Socket:/tmp/mysql_3311.sock

Uptime:62 hours sec


Threads:1 questions:584402560 Slow queries:424 opens:59664208 Flush tables:1 Open tables:64 queries per second avg: 107.551

3: Find inside Help

The following is a code fragment:

[Shengting@login ~]$ mysql--help grep distrib

MySQL Ver 14.7 distrib 4.1.10a, for Redhat-linux-gnu (i686)

4: Using the MySQL function

The following is a code fragment:

Mysql> select version ();

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

Version ()

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

3.23.56-log

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

1 row in Set (0.00 sec)



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.