Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Auf dieser Seite soll eine Sammlung von hlfreichen SQL Statements für den JEAF Cloud Desktop aufgebaut werden

...

Tip

Das Ergebnis von SQL-Abfragen lässt sich auch als CSV-Datei exportieren. Dazu ist an ein Statement folgender Nachsatz zu ergänzen

into outfile '/var/lib/mysql-files/export.csv' CHARACTER SET utf8 fields terminated by ',' enclosed by '"' lines terminated by '\n'

 

Beispiel:

select t.LOGINNAME, t.LOGINCOUNTER, t.LASTLOGINDATE from jeaf_account t order by t.LASTLOGINDATE desc into outfile '/var/lib/mysql-files/export.csv' fields terminated by ',' enclosed by '"' lines terminated by '\n';

...

Ablaufdatum von MySQL Passwort definieren

...

definieren 

Code Block
languagesql
 mysql -u root -p ALTER USER 'root'@'localhost' IDENTIFIED BY '' PASSWORD EXPIRE NEVER;

...