Answer the question
In order to leave comments, you need to log in
What does DEFAULT mean in CREATE DATABASE statement in mysql?
CREATE DATABASE `abc` DEFAULT CHARACTER SET = 'utf8';
Answer the question
In order to leave comments, you need to log in
Default sets the default encoding, if not set here, it will be taken by default from my.conf
So.
SHOW CREATE DATABASE `abc`;
+----------+--------------------------------------------------------------+
| Database | Create Database |
+----------+--------------------------------------------------------------+
| abc | CREATE DATABASE `abc` /*!40100 DEFAULT CHARACTER SET utf8 */ |
+----------+--------------------------------------------------------------+
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question