视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
MySQL5安装过程中遇到的问题的解决
2020-11-09 14:20:59 责编:小采
文档


以下的文章主要是对MySQL 5安装的过程中遇到的相关问题的解决,本文主要是以代码的方式来对MySQL 5安装的相关问题的详细解析,如果你对其实际的操作有兴趣的话,你就可以 浏览以下的文章了。 1、[root@localhost bin]# ./MySQLd_safe skip-grant-tables 出现

以下的文章主要是对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安装遇到的问题的介绍,望你能有所收获。

下载本文
显示全文
专题