当前位置: 技术问答>linux和unix
安装MySql时提示主机名有问题!?
来源: 互联网 发布时间:2016-12-02
本文导语: 在安装MySql的时候: 执行: # cd /usr/local/mysql # ./scripts/mysql_install_db --user=mysql 的时候,系统提示: ./scripts/mysql_install_db: line 205: ./bin/my_print_defaults: cannot execute binary file Neither host 'LAMP' nor 'localhost' could b...
在安装MySql的时候:
执行:
# cd /usr/local/mysql
# ./scripts/mysql_install_db --user=mysql
的时候,系统提示:
./scripts/mysql_install_db: line 205: ./bin/my_print_defaults: cannot execute binary file
Neither host 'LAMP' nor 'localhost' could be looked up with ./bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with the --force option
请问怎么解决呀? 郁闷呀...
执行:
# cd /usr/local/mysql
# ./scripts/mysql_install_db --user=mysql
的时候,系统提示:
./scripts/mysql_install_db: line 205: ./bin/my_print_defaults: cannot execute binary file
Neither host 'LAMP' nor 'localhost' could be looked up with ./bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with the --force option
请问怎么解决呀? 郁闷呀...
|
/etc/sysconfig/network里追加一句
HOSTNAME=yourhostname
在/etc/hosts文件里也追加
Your-ip-address yourhostname
重启下网络。按说系统安装完之后不存在你说的这个问题 很有可能是你私自修改了hostname 而且修改错误!
HOSTNAME=yourhostname
在/etc/hosts文件里也追加
Your-ip-address yourhostname
重启下网络。按说系统安装完之后不存在你说的这个问题 很有可能是你私自修改了hostname 而且修改错误!
|
hostname输出看一下,如果没有hostname test咱先顶替,实在不行
If you want to solve this at a later stage, restart this script with the --force option
试试--force这个选项
If you want to solve this at a later stage, restart this script with the --force option
试试--force这个选项
|
你执行hostname命令显示什么?