Seite 1 von 1

MySQL: mysqldump und "--single-transaction"

Verfasst: Dienstag 10. Oktober 2006, 20:27
von jens
Ich hab bei 1blu mal einen Dump ziehen wollen, da kommt der fehler:
Access denied for user 'sql24xxxxxxxx'@'%' to database 'db2xxxxxx' when doing LOCK TABLES
Nicht schlecht :evil:

Naja, ein wenig überlegt und den mysqldump Paramter "--single-transaction" gefunden... Damit geht's:
--single-transaction
Creates a consistent snapshot by dumping all tables in a
single transaction. Works ONLY for tables stored in
storage engines which support multiversioning (currently
only InnoDB does); the dump is NOT guaranteed to be
consistent for other storage engines. Option
automatically turns off --lock-tables.
Nun habe ich mal mit phpMyAdmin getestet und nicht mit PyLucid's MySQLdump-Plugin.... Und siehe da, es gibt kein LOCK-Fehler... Warum?

Kann man aus den SQL-Server-Variablen oder den GRANT-Tables ablesen, ob mal einen LOCK machen kann oder nicht???

Wenn ja, könnte ich das in PyLucid einbauen, das dann automatisch "--single-transaction" genutzt wird...

Jemand eine Idee?

Verfasst: Dienstag 10. Oktober 2006, 20:48
von Damaskus
könnt evtl. daran liegen das phpMyAdmin sich mit dem Benutzer root am SQL Server anmeldet und dann die User und deren Rechte selbst verwaltet...

Gruß
Damaskus