This is on a Ubuntu 12.04 server running MySQL 5.5 which is slaved to an OS X server running MySQL 5.1

Logrotate has been sending

error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql
/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log '

Turns out that there's supposed to be a "debian-sys-maint" MySQL user. I'd imagine that got blown away when the master database was imported.

My question is: Is it all right to re-add the "debian-sys-maint" user to the slave, or do I need to add it to the master?

2 Answers 2


You must add it to the master or it'll get blown away again when the database replicates over.

  • Is your mysql database replicated? Jul 20, 2013 at 10:14
  • It is a slave to the OS X database.
    – Ironlenny
    Jul 22, 2013 at 4:57

I found out the slave was not set to replicate the mysql database, so the user won't get blown way when the slave updates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.