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
The project requirements are: select date and tim...
1. Count the number of users whose default shell ...
MySql Index Index advantages 1. You can ensure th...
An at-rule is a declaration that provides instruc...
px(pixel) I believe everyone is familiar with the...
1. Check whether the MySQL service is started. If...
This article uses examples to illustrate the prin...
1. Command Introduction The file command is used ...
1. Introduction to DockerUI DockerUI is based on ...
Operation effect: html <div class="tic-ta...
Omit the protocol of the resource file It is reco...
How can you forget lazy loading of routes that al...
This article uses examples to illustrate the usag...
After the container is started Log in to admin fi...
Use the for loop to import the zabbix image into ...