This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| server:mysql [2014/03/17 08:44] – admin | server:mysql [2014/12/12 21:03] (current) – [CentOS 5.6 install mysql 5.6] admin | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| ==== MYSQL query logging ==== | ==== MYSQL query logging ==== | ||
| + | |||
| + | < | ||
| + | |||
| + | Zeige aktuelle Logging Einstellung | ||
| + | |||
| + | show variables LIKE ' | ||
| Zeige alle verfügbaren Variablen | Zeige alle verfügbaren Variablen | ||
| - | show variables; | + | show variables; |
| + | |||
| + | Verwendete Logfile | ||
| + | |||
| + | show variables LIKE ' | ||
| + | |||
| + | Aktivieren des Loggings | ||
| + | |||
| + | SET GLOBAL general_log = ' | ||
| + | |||
| + | Deaktivieren des Loggings | ||
| + | |||
| + | SET GLOBAL general_log = ' | ||
| + | |||
| + | ==== CentOS 5.6 install mysql 5.6 ==== | ||
| + | |||
| + | Sources: | ||
| + | |||
| + | * http:// | ||
| + | * http:// | ||
| + | |||
| + | Install mysql repo and disable it by default: | ||
| + | |||
| + | rpm -Uvh http:// | ||
| + | sed -i s'/ | ||
| + | |||
| + | Install mysql 5.6 | ||
| + | |||
| + | yum -y --enablerepo=mysql56-community install mysql-server | ||
| + | |||
| + | Add the following in your my.cnf [mysqld] section: | ||
| + | |||
| + | skip-grant-tables | ||