mysql

boydjd's picture

How-to: Drop all tables from a mysql database

Much easier than have to drop a database, recreate it, and then grant privileges again.

mysqldump -u <username> -p <password> --add-drop-table --no-data <database> | grep ^DROP | mysql -u <username> -p <password <database>

boydjd's picture

Got error 28 from storage engine (1030)

Apparently rather than throwing a “disk full” error message, mysql likes to tell me ERROR 28. Oh how I love mysql error messages.

Also, I really enjoy having to do work on a “production server” that is a virtual machine, with 6GB of disk space, in a test lab.

Good idea guys. Maybe some server monitoring should be in place for a PRODUCTION SERVER, no?

Syndicate content