Install Make sure your user has permission to install No root switch su root (su means: switch user) # rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm You may encounter warning: /var/tmp/rpm-tmp.6V5aFC: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Can be ignored (personal opinion, Baidu did not find a suitable answer) # yum install mysql-community-server Waiting for the installation to complete.... Configuration After installation, the initial password can be found here: grep 'temporary password' ar/log/mysqld.log MySQL 5.7 has requirements for password complexity. If you want to create a simple password, you can first execute set global validate_password_policy=0; Create a user again Please turn off SELinux on the newly installed server, otherwise you may encounter many problems caused by permissions. setenforce 0 vi /etc/selinux/config Change ENFORCE=enforcing to ENFORCE=disable Configuration Files Linux: /etc/my.cnf Default character set Versions prior to 5.6 [mysqld] default-character-set=utf8 Versions after 5.6 [mysqld] character-set-server=utf8 Modify the character set of an existing database alter database mydb default character set utf8; Table names are not case sensitive [mysqld] lower_case_table_names=1 Allows creation of functions in log-bin mode [mysqld] log_bin_trust_function_creators=true Enable strict mode. In non-strict mode, fields that are too long will be automatically truncated. [mysqld] sql-mode="STRICT_TRANS_TABLES" The above is the detailed introduction of CenOS installation of MySQL 5.7 and simple configuration tutorial. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: 10 Popular Windows Apps That Are Also Available on Linux
>>: Bootstrap FileInput implements image upload function
Table of contents $nextTick() $forceUpdate() $set...
Table of contents 1. Stored Procedure 1.1. Basic ...
Without further ado, I'll go straight to the ...
Preface This article mainly explains how to imple...
As shown below: The test command determines wheth...
Switching files is a common operation in Linux. W...
Target Display one of the data in the iostat comm...
1. Change the transparency to achieve the gradual...
cause When executing the docker script, an error ...
This article mainly introduces the method of conf...
This article shares the specific code of js to ac...
1. Installation package preparation VMware-player...
Nginx logs can be used to analyze user address lo...
Table of contents Overview 1. Simple Example 1. U...
In Node.js, a .js file is a complete scope (modul...