Mysql diverses

Aus Howtos und Gedankenstuetzen

Wechseln zu: Navigation, Suche

Datenbankdump zurückspielen

#mysql -h localhost -u [MySQL user, e.g. root] -p[database password] [name of the database] < [name of your sql dump, e.g. sqldump.sql]

Benutzer anlegen und mit Rechten versehen

#grant all privileges on *.* to root@localhost identified by 'password' with grant option;
#grant all privileges on *.* to usert@localhost identified by 'password';