Linux下安装mysql
scripts/mysql_install_db --user=mysql
总是提示:
Neither host 'localhost' nor 'localhost' could be looked up with
/usr/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
我 ping localhost ,解析为127.0.0.1,是没有问题的
下面是我的hosts文件到内容:
#Do not remove the following line,or various programs
#that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
还请前辈指点迷津 我都快搞疯了……
相关推荐
Linux安装MySql devel
MySQL-devel-5.5.39-2.rhel5.i386.rpm 软件下载
linux 安装 Mysql
linux 安装mysql
Linux下安装Mysql
Linux下安装Mysql数据库; Linux mysql rpm安装包 Linux mysql安装教程
linux下mysql的安装卸载
linux下mysql的安装卸载;卸载mysql;安装服务端;安装服务端
Linux安装mysql压缩包安装
Linux下安装mysql安装包安装及详细步骤 (有安装包及步奏 问题解答) Mysql数据库的安装对于开发者来说,是我们必然会面对的问题,它的安装过程其实并不复杂,并且网络上的安装教程也非常多,但是对于新手来说,各种不同形式的安装教程,又给新手们带来了要选择哪种方式进行安装的难题,而且很多时候按照教程也没有能够安装成功,安装过程出现各种各样的错误。 下面记录了我在Linux环境下安装Mysql的完整过程,实操记录,绝非水文,如有错误或遗漏,欢迎指正。 安装中遇到的问题是第6步,编辑配置文件my.cnf,添加配置如下全部更换,或者把以前的注释掉。 datadir=/usr/local/mysql/data port = 3306 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES symbolic-links=0 max_connections=800 max_connect_errors = 1000 innodb_file_per_table=1 lower_case_table_names=1 character_set_server=utf8 init_connect='SET NAMES utf8' max_allowed_packet = 16M



