Home  >  Article  >  Backend Development  >  Summary of several ways to get the mysql version in php_PHP tutorial

Summary of several ways to get the mysql version in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:53:481182browse

select VERSION()

Current $res=mysql_query("select VERSION()");$row=mysql_fetch_row($res); This form calls SQL query to obtain.

If you want to query the version of the MYSQL support library (CLIENT) installed by PHP itself, you can use

A simpler way to use PHP's own functions mysql_get_server_info();

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318645.htmlTechArticleselectVERSION() current $res=mysql_query("selectVERSION()");$row=mysql_fetch_row($res) ;This form calls SQL query to obtain. If you query the MYSQL support library installed by PHP itself (CLIENT...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn