The decompressed version of MYSQL is installed 1: After decompression, copy a my.ini file and add the byte encoding configuration: [client] default-character-set=gbk [mysqld] character-set-server=utf8 Specify the database configuration file bin\mysqld --defaults-file=my.ini --initialize-insecure Specify the configuration file my.ini (If you ignore this step, the configuration of my.ini will not take effect, which is a bit of a pitfall) Install the database: bin/mysqld --install Start the database service: net start mysql (under Windows environment) 2: Specify the database encoding when creating a database: 3 Specify UTF8 encoding when creating a table: CREATE TABLE `Demo_Table` ( `name` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, `size` bigint(20) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, `label` varchar(255) DEFAULT NULL, PRIMARY KEY (`name`,`created_by`) )ENGINE=InnoDB DEFAULT CHARSET=utf8; The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to completely uninstall node and npm on mac
>>: JS implements multiple tab switching carousel
In this tutorial, we use the latest MySQL communi...
1. Write a split script (splitNginxLog.sh) * Beca...
1. Introduction to Docker 1.1 Virtualization 1.1....
I haven't used mysql on my computer for a lon...
SRIOV introduction, VF pass-through configuration...
HTML Design Pattern Study Notes This week I mainl...
The textarea tag size is immutable Copy code The c...
1. mysql export file: SELECT `pe2e_user_to_compan...
Table of contents 1. How is cross-domain formed? ...
Table of contents Constructor new Operator Implem...
Table of contents Install sakila Index Scan Sort ...
How to use the MySQL authorization command grant:...
Table of contents 1. Solution 1 (UDF) Demo Case 2...
In my past work, the development server was gener...
Step 1: Check the local Ethernet properties to se...