User Tools

Site Tools


server:mysql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
server:mysql [2014/03/17 08:44] adminserver: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 ====
 +
 +<note>Logging sollte nach Verwendung wieder deaktiviert werden</note>
 +
 +Zeige aktuelle Logging Einstellung
 +
 +  show variables LIKE 'general_log';
  
 Zeige alle verfügbaren Variablen Zeige alle verfügbaren Variablen
  
-  show variables; +  show variables; 
 + 
 +Verwendete Logfile 
 + 
 +  show variables LIKE 'general_log_file'; 
 + 
 +Aktivieren des Loggings 
 + 
 +  SET GLOBAL general_log = 'ON'; 
 + 
 +Deaktivieren des Loggings 
 + 
 +  SET GLOBAL general_log = 'OFF'; 
 +   
 +==== CentOS 5.6 install mysql 5.6 ==== 
 + 
 +Sources: 
 + 
 +  * http://www.servermule.com.au/help/linux/install-lemp-mysql-5-6-centos-6/ 
 +  * http://bugs.mysql.com/bug.php?id=70431 
 + 
 +Install mysql repo and disable it by default: 
 + 
 +  rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm 
 +  sed -i s'/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo 
 + 
 +Install mysql 5.6 
 + 
 +  yum -y --enablerepo=mysql56-community install mysql-server 
 +   
 +Add the following in your my.cnf [mysqld] section: 
 + 
 +  skip-grant-tables
server/mysql.1395045879.txt.gz · Last modified: 2014/03/17 08:44 by admin