Direkt zur Hauptnavigation springen Direkt zum Inhalt springen

Schlagwort: MySQL

mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1

Falls Sie diese Fehlermeldung erhalten, passt ihr mysql client nicht zur Datenbankversion. Aktualisieren Sie diesen und dann wird es funktionieren. mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_QUOTE_SHOW_CREATE=1' at line 1 (1064)

TYPO3 calendarize 4.x auf 6.x Update

Folgende SQL Befehle müssen durchgeführt werden, falls sich die Spalten start_date und end_date im INT-Format befinden. Die neue calendarize Version arbeiten mit DATE. ALTER TABLE `tx_calendarize_domain_model_configuration` ADD `start_date2` DATE DEFAULT NULL AFTER `start_date`; UPDATE `tx_calendarize_domain_model_configuration` SET start_date2 = FROM_UNIXTIME(start_date); ALTER TABLE `tx_calendarize_domain_model_configuration` DROP `start_date`; ALTER TABLE `tx_calendarize_domain_model_confi...

Replace non-UTF8 in dump file with sed

#!/bin/sh sed -i s/ß/ß/g $1 sed -i s/ä/ä/g $1 sed -i s/ü/ü/g $1 sed -i s/ö/ö/g $1 sed -i s/‘/\"/g $1 sed -i s/’/\"/g $1 sed -i s/§/§/g $1 sed -i s/–/–/g $1 sed -i s/©/©/g $1 sed -i s/„/„/g $1 sed -i s/“/“/g $1 sed -i s/Ü/Ü/g $1 sed -i s/Ö/Ö/g $1 sed -i s/Ä/Ä/g $1 sed -i s/·/·/g $1

TYPO3: Fehlermeldung nach Backend-Login

Nach dem Login im Backend erscheint folgende Fehlermeldung: Oops, an error occurred! An exception occurred while executing 'SELECT `sys_action`.* FROM `sys_action` INNER JOIN `sys_action_asgr_mm` `sys_action_asgr_mm` ON `sys_action_asgr_mm`.`uid_local` = `sys_action`.`uid` INNER JOIN `be_groups` `be_groups` ON `sys_action_asgr_mm`.`uid_foreign` = `be_groups`.`uid` WHERE (`be_groups`.`uid` IN (?)) AND (((`sys_action`.`hidden` = 0) AND (`be_groups`.`hidden` = 0)) AND (`sys_action`.`pid` = 0)) G...

MySQL Workbench: Remove default schema at export

Currently it is not possible to export a database in MySQL Workbench without default schema. This is a problem if you want to import the sql file into another database. Editing very large sql files is not even possible. For Linux the following commands may be useful. It replaces all schema names in all sql files in the current directory. find . -name "*.sql" -print | xargs sed -i 's/NOT EXISTS `olddatabase`/NOT EXISTS `newdatabase`/g' find . -name "*.sql" -print ...

MySQL Server benötigt zu viel Platz

Der MySQL Server legt in der Standard-Konfiguration fleißig mysql-bin.xxxx. Dateien unter /var/lib/mysql die mitunter bei sehr vielen Transaktionen sehr groß werden können. In meinem Fall benötigten diese über 60 GB. Da diese nach einer gewissen Zeit nicht mehr gebraucht werden, musste ich folgende Einstellung in die my.cnf eintragen und sie wurden automatisch gelöscht. Ich habe die Grenze auf 100 Tage gesetzt: expire_logs_days = 100