Schlagwort: MySQL
dbeaver: "Prepared statement needs to be re-prepared Query is: SELECT * FROM mysql.user ORDER BY user"
Die Lösung ist, sich direkt von der MariaDB Website unter https://mariadb.com/kb/en/installing-mariadb-connectorj/ eine aktuelle Version des Connectors herunterzuladen und in dbeaver zu installieren. Der alte 1.5.5 muss entfernt werden.
ERROR 1005 (HY000) at line 3698: Can't create table `xxxxxxxx` (errno: 140 "Wrong create options")
Solution: Remove the option "ROW_FORMAT=FIXED" in the "CREATE TABLE" statement.
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: Reihenfolge übersetzter Element an Standard-Elemente anpassen
UPDATE `tt_content` AS a INNER JOIN tt_content AS b ON a.l18n_parent = b.uid SET a.sorting = b.sorting WHERE a.sys_language_uid > 0 AND a.l18n_parent > 0
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...
How to change the default mysql/mariadb 3306 port
Open the my.cnf file Add a [client-server] section if it doesn't exist And then write in this section: port = XXXXX Restart server. Done.
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