2008-12-03 9 views

Répondre

10

Vous pouvez utiliser SHOW VARIABLES:

SHOW VARIABLES WHERE Variable_name = 'version';

3

la version select();

+0

Cela fonctionne également très bien. Merci! –

2

Ligne de commande:

mysql --version 
0

Outre les solutions déjà mentionnées, vous pouvez simplement voir la version si vous tapez mysql dans votre shell. Vous obtiendrez quelque chose comme ceci:

[[email protected]]# mysql 
Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 386102 
Server version: 5.1.61 Source distribution 

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 

Oracle is a registered trademark of Oracle Corporation and/or its 
affiliates. Other names may be trademarks of their respective 
owners. 

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

où vous pouvez voir que la version est imprimée dans la ligne Server version: 5.1.61 Source distribution.

Questions connexes