Python,django,mysql Version number query

Source: Internet
Author: User

1. How to query the MySQL version of a subset under Ubuntu:

Method One:

MySQL version is displayed after the login subset of MySQL;

***:~$ mysql-U root-P Enter password:welcome toThe MySQL Monitor. CommandsEnd  with;or\g.your MySQL Connection ID is  +Server Version:5.5. A-0ubuntu0.14.10.1(Ubuntu) #这就是版本号Copyright (c) -, the, Oracleand/orits affiliates. Allrights reserved. Oracle isA registered trademark ofOracle Corporationand/oritsaffiliates. Names may trademarks oftheir respectiveowners. Type'Help ;' or '\h'  forHelp. Type'\c'  toClear the CurrentInput statement

Method Two:

Enter the query statement after you log in:select version ();

Mysql> Selectversion ();+-------------------------+|Version ()|+-------------------------+| 5.5. A-0ubuntu0.14.10.1 |+-------------------------+1Rowinch Set(0.00sec) MySQL> 

It is so simple;

How to know your Python version number under 2.ubuntu:

Run ' python ' directly to see the Python version number of the subset;

: ~2.7.8 (default, OCT, 15:05:194.9.1"Help"  Copyright""credits"or"license  " for more information. "

How to query your own Django version number under 3.ubuntu:

First, the Django package is imported under Python;

Import Django

Then, run Django. VERSION

Import Django>>> Django. VERSION ('final', 0)

Python,django,mysql Version number query

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.