MySQL 5安装过程中遇到的问题的解决

数据库 MySQL
我们今天主要和大家分享的是MySQL 5安装的过程中遇到的相关问题的解决,下面就是文章的具体内容的介绍,望你在浏览之后会有所收获。

以下的文章主要是对MySQL 5安装的过程中遇到的相关问题的解决,本文主要是以代码的方式来对MySQL 5安装的相关问题的详细解析,如果你对其实际的操作有兴趣的话,你就可以 浏览以下的文章了。

1、[root@localhost bin]# ./MySQLd_safe –skip-grant-tables

出现以下信息:

 

  1. Installing MySQL system tables…  
  2. 090724 12:05:13 [Warning] option ‘max_join_size’: 
    unsigned value 18446744073709551615 adjusted to 4294967295  
  3. 090724 12:05:13 [Warning] option ‘max_join_size’: 
    unsigned value 18446744073709551615 adjusted to 4294967295  
  4. ERROR: 1062 Duplicate entry ‘localhost-’ for key 1  
  5. 090724 12:05:13 [ERROR] Aborting  
  6. 090724 12:05:13 [Note] /usr/local/MySQL5/libexec/MySQLd: Shutdown complete  
  7. Installation of system tables failed!  
  8. Examine the logs in /var/lib/MySQL5 for more information.  
  9. You can try to start the MySQLd daemon with:  
  10. /usr/local/MySQL5/libexec/MySQLd –skip-grant &  
  11. and use the command line tool  
  12. /usr/local/MySQL5/bin/MySQL to connect to the MySQL  
  13. database and look at the grant tables:  
  14. http://www.knowsky.com/  
  15. shell> /usr/local/MySQL5/bin/MySQL -u root MySQL  
  16. MySQL> show tables  
  17. Try ‘MySQLd –help’ if you have problems with paths. Using –log  
  18. gives you a log in /var/lib/MySQL5 that may be helpful.  
  19. The latest information about MySQL is available on the web at  
  20. http://www.MySQL.com  
  21. Please consult the MySQL manual section: ‘Problems running MySQL_install_db’,  
  22. and the manual section that describes problems on your OS.  
  23. Another information source is the MySQL email archive.  
  24. Please check all of the above before mailing us!  
  25. And if you do mail us, you MUST use the /usr/local/MySQL5/bin/MySQLbug script!  

 

2、[root@localhost bin]# /usr/local/MySQL5/libexec/MySQLd –skip-grant &

出现以下信息:

 

  1. [1] 6633  
  2. [root@localhost bin]# 090724 12:05:34 [Warning] option ‘max_join_size’: 
    unsigned value 18446744073709551615 adjusted to 4294967295  
  3. 090724 12:05:34 [Warning] option ‘max_join_size’: 
    unsigned value 18446744073709551615 adjusted to 4294967295  
  4. 090724 12:05:34 [ERROR] Fatal error: Please read “Security” 
    section of the manual to find out how to run 
    MySQLd as root!  
  5. 090724 12:05:34 [ERROR] Aborting  
  6. 090724 12:05:34 [Note] /usr/local/MySQL5/libexec/MySQLd: Shutdown complete  
  7. [1]+ Exit 1 /usr/local/MySQL5/libexec/MySQLd –skip-grant  

 

解决办法:在/etc/my.conf中的MySQLd这一节中加入:user=MySQL,以上的相关内容就是对MySQL 5安装遇到的问题的介绍,望你能有所收获。

【编辑推荐】

  1. MySQL隐藏空间相关问题的解答
  2. MySQL数据库命令的基础简介
  3. MySQL数字类型中的三种常用种类
  4. MySQL force Index 强制索引概述
  5. MySQL参数设置如何解决瓶颈效应?

 

 

责任编辑:佚名 来源: 博客园
相关推荐

2011-04-11 13:25:59

Sybase安装

2011-04-11 13:28:31

Oracle安装

2010-03-08 09:29:09

Linux Debia

2010-03-30 10:04:01

Nginx php

2009-12-10 14:19:41

配置静态路由

2011-08-22 17:34:53

Ubuntu11.04

2011-07-22 17:37:18

MySQL数据库

2016-03-23 11:03:40

2010-01-04 15:27:45

Silverlight

2011-05-13 14:56:44

SybaseOracle

2010-01-11 16:28:36

Fedora 2安装

2009-11-26 10:46:38

VS2003制作安装

2023-02-28 16:26:46

推荐系统模块

2021-12-24 10:17:54

Java数据时间戳

2020-07-29 08:03:26

Celery异步项目

2020-12-23 07:53:01

TCP通信Netty

2011-03-04 13:49:38

FileZilla

2021-08-05 08:32:27

React开发项目

2011-07-20 18:00:15

MySQL数据库字符集

2009-07-23 14:10:38

Hibernate J
点赞
收藏

51CTO技术栈公众号