最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

安装MySQL错误归档处理_MySQL

来源:动视网 责编:小采 时间:2020-11-09 17:48:07
文档

安装MySQL错误归档处理_MySQL

安装MySQL错误归档处理_MySQL:今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。 1、 [root@localhost mysql]# scripts/mysql_install_db Neither host 'localhost.localdomain' nor 'localhost' could be looked up
推荐度:
导读安装MySQL错误归档处理_MySQL:今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。 1、 [root@localhost mysql]# scripts/mysql_install_db Neither host 'localhost.localdomain' nor 'localhost' could be looked up


  今天我升级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

文档

安装MySQL错误归档处理_MySQL

安装MySQL错误归档处理_MySQL:今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。 1、 [root@localhost mysql]# scripts/mysql_install_db Neither host 'localhost.localdomain' nor 'localhost' could be looked up
推荐度:
标签: 安装 mysql 装mysql
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top