---
title: "MySQL 版本后面 -log的含义"
author: "chenhsong"
date: "2014-02-13T14:47:48Z"
tags: []
categories: ["数据库"]
slug: "mysql-log"
draft: false
lastmod: "2014-02-13T14:47:31Z"
id: 2016993
url: "https://omgdba.iteye.com/blog/2016993"
---

- []()[`VERSION()`](http://dev.mysql.com/doc/refman/4.1/en/information-functions.html#function_version)
  
  Returns a string that indicates the MySQL server version. As of MySQL 4.1, the string has the `utf8` character set.
  
  ```
  mysql>  SELECT VERSION(); 
          -> '4.1.25-standard'
  ```
  
  Note that if your version string ends with `-log` this means that logging is enabled.
- [http://dev.mysql.com/doc/refman/4.1/en/information-functions.html#function\_version](http://dev.mysql.com/doc/refman/4.1/en/information-functions.html#function_version)