当前位置:Gxlcms > mysql > MySQL5安装过程中遇到的问题的解决

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

时间:2021-07-01 10:21:17 帮助过:36人阅读

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

人气教程排行