This is an old revision of the document!


sql commands

FIXME Übersetzen

gain ownership of all of 'em!

Imagine some people who did upload a bunch of files each. What a PITA to sort this mess - well, not really, because it is plain impossible to do so.
But there is help - read the following and get instant relief:

UPDATE TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, 'find this', 'replace with that');

This will translate into (where “2” is the f_uid of the second admin e.g. and you yourself are the number “1”)

UPDATE phpwcms_file SET f_uid=REPLACE(f_uid, '2', '1');

But this is still a placeholder! Imagine, which wonderful (and terrible) things you can do with that command!
And the result of the above? The folder of the second admin is plain empty and you are the winner 8-)

Löschen von alten Einträgen

(sql-befehle)

<note important> Dateien und Bilder bitte nur aus der DB löschen, wenn vorher im BE der Papierkorb in der Dateizentrale geleert und unter Admin → Dateien final löschen ausgeführt wurde!!! </note>

DELETE FROM phpwcms_file WHERE f_trash=8;
deutsch/technik/datenbank/phpwcms_file/sql-befehle.1242082553.txt.gz · Last modified: 2018/06/03 18:06 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0