Linux initializes the MySQL database error reporting solution
- 2020-06-03 09:09:20
- OfStack
Linux initializes the MySQL database error reporting solution
Initialize MySQL (server, devel) after installation in Linux CentOS 5
service mysqld start, execute command to report error:
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
Error:
The solution
1. Check /etc/hosts, the content is as follows:
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost.localdomain localhost
2. After modifying ::1 to 127.0.0.1, the startup succeeds.
Thank you for reading, I hope to help you, thank you for your support to this site!