安装MySQL数据库错误归档处理_MySQL数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

安装MySQL数据库错误归档处理

作者:黑客防线网安MYSQL维护基地 来源:黑客防线网安MYSQL维护基地 浏览次数:0

本篇关键词:处理错误数据库安装
黑客防线网安网讯:  今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。  1、  [root@localhost mysql]# scripts/mysql_install_db  Neither host 'localhost.localdomain' nor 'local...

  今天我升级MYSQL到5.1的时候遇到的写出来共享以下

  1、

  [root@localhost mysql]# scripts/mysql_install_db

  Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

  /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/hosts文件

echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts

  然后再初始化数据如果还是同样的错误那就直接加--force开关。

  我今天碰到的就是这个情况。

  [root@localhost mysql]# scripts/mysql_install_db --force

  Installing MySQL system tables...

  OK

  Filling help tables...

  OK

  To start mysqld at boot time you have to copy

  support-files/mysql.server to the right place for your system

  PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

  To do so, start the server, then issue the following commands:

  /usr/local/mysql//bin/mysqladmin -u root password 'new-password'

  /usr/local/mysql//bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

  See the manual for more instructions.

  You can start the MySQL daemon with:

  cd . ; /usr/local/mysql//bin/mysqld_safe &

  You can test the MySQL daemon with mysql-test-run.pl

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-9387-1.html
网站维护教程更新时间:2012-03-20 17:19:04  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer