This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
server:mysql [2012/08/08 09:23] – external edit | server:mysql [2014/12/12 21:03] (current) – [CentOS 5.6 install mysql 5.6] admin | ||
---|---|---|---|
Line 31: | Line 31: | ||
mysql db_name < ./ | mysql db_name < ./ | ||
+ | |||
+ | ==== MYSQL query logging ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | Zeige aktuelle Logging Einstellung | ||
+ | |||
+ | show variables LIKE ' | ||
+ | |||
+ | Zeige alle verfügbaren Variablen | ||
+ | |||
+ | 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 |