MySQL Administrations-Einsmaleins

Auflisten von Schemas, Tabellen, Grants etc:
[cc lang="sql"]show schemas;
show tables;
show grants for user@localhost;[/cc]

Rechte hinzufuegen
[cc lang="sql"]grant all privileges on schema.* to username@localhost identified by ‘passwort’;[/cc]

Rechte entfernen
[cc lang="sql"]– einzeln
revoke all privileges on schema.* from user@localhost;
– alle rechte
drop user user@localhost;[/cc]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>