Joke Collection Website - Bulletin headlines - How to create a new table utf8 format in mysql?
How to create a new table utf8 format in mysql?
Mysql comes first;
Linux code; ?
GBK: create the default character set gbk COLLATE gbk _ chinese _ ci of database test2.
UTF8: Create the default character set utf8 COLLATEutf8 _ general _ ci for database "test2".
eg;
Linux code www.2cto.com? ;
[root@linuxtest test] # mysql -u root -p? ;
Enter the password;
Welcome to MySQL Monitor. ? The command ends with; Or \ g;;
Your MySQL connection id is 5; ?
Server version: 5. 1.30- community MySQL community server (GPL); ?
Type "help" or "\h" for help. Type "\c" to clear the buffer; ?
Mysql & gt creates the default character set utf8 COLLATE utf8 _ general _ ci for database "test"?
The query is normal, and 1 line is affected (0.06 seconds)? ;
Mysql & gt display database;
+ - + ;
| Database? | ;
+ - + ;
| information _ schema |
| cactus? | ;
| mysql? | ;
| Test? | | ;
+ - + ;
A group of 5 lines (0.07 seconds);
This test library is in utf-8 format.
- Related articles
- What is VI (Visual Identification System)?
- What is the national debt like?
- University, go to the Internet cafe at least once a week, but you can't study every day. After a long time, you want to go to the internet cafe. How to quit Internet addiction?
- Market supervision comprehensive law enforcement corps
- March 12th Arbor Day electronic screen banner promotion slogan
- What do you mean by the long white road and the young people chasing the light?
- How does Huawei mate7 get rid of the advertisement of lock screen?
- How many episodes are there in the audio novel "The Ace of Special Forces in the Anti-Japanese War"?
- I know it's a bit uncivilized, but it's interesting. ...
- What is the specific content of the "Seven Ones" activity to prevent students from drowning?