Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solution to initialization warning of yum installation MySQL under CentOS6.2

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "the solution of MySQL initialization warning for yum installation under CentOS6.2". In daily operation, I believe that many people have doubts about the solution of yum installation MySQL initialization warning under CentOS6.2. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "yum installation MySQL initialization warning solution under CentOS6.2". Next, please follow the editor to study!

Yum install mysql-server

The following warning occurs during initialization

[root@fengzhige etc] # / etc/rc.d/init.d/mysqld start

Initializing MySQL database: WARNING: The host 'fengzhige' could not be looked up with resolveip.

This probably means that your libc libraries are not 100% compatible

With this binary MySQL version. The MySQL daemon, mysqld, should work

Normally with the exception that host name resolving will not work.

This means that you should use IP addresses instead of hostnames

When specifying MySQL privileges!

Installing MySQL system tables...

OK

Filling help tables...

OK

Follow the prompts to add / etc/hosts to IP and hostname

For example, [root@37 etc] # cat / etc/hosts

The code is as follows:

[root@fengzhige etc] # cat / etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.10.37 fengzhige

192.168.11.37 fengzhige

At this point, the study of "the solution to the MySQL initialization warning for yum installation under CentOS6.2" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report