Thank you Thomos,
I think it is always nice to take backup with(--add-drop-table)
option in mysqldump.
bcoz,it adds line
DROP TABLE IF EXITS;
🙂
Another Question:
I have to use autocommit and rollback in mysql.
but i think MySql does not support for that functions.
this is php_info()
MySQL
Support enabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
after deleting some records from table i gave following command to restore the table.
but it showa the following error.
mysql> rollback;
ERROR 1196: Warning: Some non-transactional changed tables couldn't be rolled back