In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Preface
In the past, the company used the 5.7series MySQL, but with the release of 8.0, I would like to try to upgrade it. Two minor errors have been encountered, recorded here.
Before we begin, if you are not clear about the steps of MySQL8.0 installation, you can refer to this article: https://www.jb51.net/article/98270.htm, all right, let's take a look at the detailed introduction.
Path settings:
Install package path: / data/mysql80/
Data path:
/ data/mysql/
Here is a description of the errors and problem solutions I encountered during installation:
Question 1 Premission denied
Because the mysql80 installation file is Copy from other Server, it is not downloaded and decompressed on the official website, so I reported an error when initializing MySQL and starting MySQL service, indicating that the permissions are not enough.
Initialization error:
Start the service with an error:
Solution:
For the first error, execute the following code:
Chmod-R 755 / data/mysql80/bin/
For the second error, execute the following code:
Chmod-R 755. / mysql.server
(this file is / data/mysql80/support-files)
And
Chmod-R 755 / etc/init.d/mysqld
Question 2 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'password (' XXXXX')'at line 1
When logging in to MySQL and changing the root password, use the method SET PASSWORD=PASSWORD ('[new password]') to report an error.
Check the relevant explanations on the Internet as follows:
The password authentication plug-in for previous versions of MySQL was "mysql_native_password", but now it uses "caching_sha2_password".
Solution:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY' New password; FLUSH PRIVILEGES
Question 3 enable remote login error, You are not allowed to create a user with GRANT
When remote login is enabled, the error message is as follows:
Solution:
By command
Select host,user,authentication_string,plugin from user
Check that the host field value is really limited to localhost
Then directly through the command
Update user set host = "%" where user='root'
Modify it directly.
Verify that you can connect remotely.
Summary
The above is the whole content of this article, I hope that the content of this article has a certain reference and learning value for your study or work, if you have any questions, you can leave a message and exchange, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.