MySQL Error :1006 SQLSTATE: HY000 (ER_CANT_CREATE_DB) Message: Can't create database 'mydb' (errno: 28)
Posted on : Mon, 12th Oct 15 12:35 pm UTC
- Error No : 1006
- Error Type : Server Error
- Error Code : SQLSTATE: HY000 (ER_CANT_CREATE_DB)
- Error Message : Can't create database '%s' (errno: %d) Server Error
mysql> CREATE DATABASE myTable;
ERROR 1006 (HY000): Can't create database 'myTable' (errno: 28)
Reason : This error may occur when you do not have enough space on your server (HDD).
If you get his error, you need to check all filesystems where MySQL operates. It may be single filesystem or as we recommend you can have datadir, tmpdir and log files split into dedicated filesystems.
- MySQL docs
- Stop your MySQL server.
- Check filesystem space (command : df -h).
- Free up space by removing unwanted files.
If you get this error on your Hosting database server (GoDaddy, Hostgator etc) do check your space limit.
mission is to share varied knowledge in technical
and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without
re-inventing the wheel. Technical posts include Learnings, Tutorials
, Video Tutorials, Code Snippets, Tips-n-tricks.
Follow us : Facebook
- Google +