In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The knowledge of this article "Linux how to install mysql default profile location" is not understood by most people, so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "Linux how to install mysql default profile location" article.
The solution is as follows:
1. Use the which mysqld command to view the installation location of mysql
two。 Use the / usr/local/mysql/bin/mysqld-verbose-help | grep-A 1 'Default options' command to view the default path of the configuration file used by mysql. (note that the path to the mysql installation directory obtained by the command in step 1 is marked in red)
From the figure above, we can see the order and location in which mysql reads the configuration file path. First, check whether there is a my.cnf configuration file under / etc/mysql/. If not, we can get a configuration file under / etc. Where does the configuration file come from?
4. Get my.cnf profile
As shown in the figure above, we first change to the support-files directory of the mysql installation directory and view the following file information through the ll command
Copy the configuration file to / etc via cp-r / usr/local/mysql/support-files/my-default.cnf / etc/
Switch to the / etc directory and change the name of the file through mv my-default.cnf my.cnf
5. Edit my.cnf to specify the mysql installation path and mysql data file storage path. The following figure also configures bin-log. You need to specify server_id when configuring bin-log.
6. At this point, we have finished sorting out the configuration file of mysql. You can check whether the configuration is effective by opening bin-log and restarting mysql. If so, the above configuration is successful. If you cannot start after modifying my.cnf, you can view the error message as follows
The above is about the content of this article on "how to install mysql default profile location for Linux". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please follow the industry information channel.
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.