Now, after adding
--lock-tables=false
in the affected file, everything works back to normal.
What affected file fo you mean?
error in mysql[/b] and not on my part, so I turned lock-table to false... lol
I would love to see the reference here as I doubt this is the issue nor the solution.
Modify: [/b]
/etc/e-smith/events/pre-backup/S20mysql-dump-tables
to have this contents and everything will be back to normal:
#!/bin/sh
status=$(/sbin/e-smith/config getprop mysqld status)
if [ "$status" = "disabled" ]
then
echo "mysqld is disabled - no tables dumped" >&2
exit 0
fi
for db in $(mysql -BNre "show databases;")
do
mysqldump --add-drop-table -QB "$db" --lock-tables=false -r /home/e-smith/db/mysql/"$db".dump || exit 1
done
You are posting:
1. an modification to an undaignosed error here, at least I see nothing describing the cause, nor the error message here.
2. you are posting a fix in the forums, where you should have opened a bug report for it and add the fix there. This way if it really is an error or a bug it will most likely not be fixed and you solution is lost to others (and will also be lost om upgrades as well).
I seriously think you have deviced a work-around for something that should be fixed somewhere else, as I get the impression you have not found the root cause IMHO.