The detailed steps for installing mysql5.7.19 on centos6.5 are as follows 1. Download mysql5.7.19 from the oracle website groupadd mysql 3. Unzip the files to be installed to the specified directory. You need to set the chown 755 directory to allow mysql to access it. 4. Find bin in the unzipped mysql directory, where there is the mysqld executable file. implement ./mysqld --user=mysql --basedir=/home/mysql/mysql-5.7.16-linux-glibc2.5-x86_64 --datadir=/home/mysql/data --initialize 5. Copy my-defalut.cnf in the support-files directory under the installation directory to /etc/my.cnf 6. Copy mysql.service in the support-files directory under the installation directory to /etc/init.d/mysqld 7. Set up the mysql connection and connect the mysql in the bin directory under the installation directory to /usr/local/bin 8. Modify /etc/my.cnf set up 9. service mysql start starts mysql 10. mysql -uroot connects to mysql and prompts root@localhost login is not allowed , you need to set a password Shut down mysql first Modify /etc/my.cnf Add skip-grant-tables to mysqld Enable mysql Enter mysql>UPDATE mysql.user SET authentication_string=password('123456') WHERE User='root' AND Host='localhost'; Just change the root password. Or enter mysql> set password=password('123456'); 11. Set the character type of the database Edit /etc/my.cnf 12. Check the character type of the database mysql>show variables like "%character%"; Wonderful topic sharing: Installation tutorials for different versions of MySQL Installation tutorials for MySQL 5.7 versions Installation tutorials for MySQL 5.6 versions 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:
|
<<: Ideas and codes for implementing waterfall flow layout in uniapp applet
>>: How to deploy nodejs service using Dockerfile
Limit usage When we use query statements, we ofte...
Note: Other machines (IP) cannot connect to the M...
0x0 Introduction First of all, what is a hash alg...
Record the installation and configuration method ...
This article describes the Linux file management ...
Moore's Law no longer applies Starting with F...
Use the vscode editor to create a vue template, s...
Problem Description After installing the plugin E...
How to allow remote connection in MySql To achiev...
1. Conclusion Syntax: limit offset, rows Conclusi...
Let me summarize a problem that I have encountere...
This article example shares the specific code of ...
1. <select style="width:195px" name=&...
Table of contents 1. Data Type 1.1 Why do we need...
Today, I logged into the server and prepared to m...