Vielen Dank für die Hinweise; grant ... wird mir weiterhelfen.

Gruss, Gregor.

Dominik Klein schrieb:
Guten Morgen Gregor

beim nächsten mal antworte bitte an die Liste.

Beispiel:
User "gregor" soll auf datenbank.tabelle1 nur lesend zugreifen können, auf datenbank.tabelle2 auch schreibend.

Also machst du folgendes:
grant select on datenbank.tabelle1 to gregor@"IP-Adresse" identified by "passwort"; grant select,insert,update,delete on datenbank.tabelle2 to gregor@"IP-Adresse" identified by "passwort";

Sollte der user vorher schon andere Rechte gehabt haben, müssen diese ggf. erst entzogen werden:

revoke all privileges on *.* from gregor@"IP-Adresse";

Nachdem du die Rechte neu vergeben hast, musst du sie mittels "flush privileges;" noch abschicken. Anderenfalls werden sie erst beim nächsten Start aktiv.

Deine Replikation wird nach dieser Änderung nach wie vor auf datenbank.tabelle1 schreiben können.

Hoffe das hilft
Dominik

Gregor Reich schrieb:
I'm sorry, my question may be "stupid", but how can I change user privileges on per tables? (The application I'm running must have on single DB!).

Thanks

Gregor.

Dominik Klein schrieb:
Is there a possibility to have some tables write-protected while others in the same db are not (and yet the write-protected ones are updatable through the replication mechanism, ie. there are tables on a slave server). I guess that both, LOCK TABLES and read-only in my.cnf, don't get this result.

Set proper privileges for your user accounts. This will not affect replication, so replication will continue to write to that table.



Mit freundlichen Grüssen
Gregor Reich




Mit freundlichen Grüssen
Gregor Reich

--

Jud Grafik+Internet
Grynaustrasse 21
8730 Uznach
Tel. 055 290 16 59
Fax 055 290 16 26
Skype: gregreich (Internettelefonie www.skype.com)
www.juhui.ch


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to