How to solve problems encountered during MySQL5 Installation

Source: Internet
Author: User
The following articles mainly solve the problems encountered during MySQL5 installation. This article mainly uses code to analyze the problems related to MySQL5 installation, if you are interested in the actual operations, you can browse the following articles. 1. [root @ localhostbin] #. MySQLd_safeskip-grant-tables appears

The following articles mainly solve the problems encountered during MySQL 5 installation. This article mainly analyzes the problems related to MySQL 5 installation in code mode, if you are interested in the actual operations, you can browse the following articles. 1. [root @ localhost bin] #./MySQLd_safe skip-grant-tables appears

The following articles mainly solve the problems encountered during MySQL 5 installation. This article mainly analyzes the problems related to MySQL 5 installation in code mode, if you are interested in the actual operations, you can browse the following articles.

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

The following information is displayed:

 
 
  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 &

The following information is displayed:

 
 
  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

Solution: in/etc/my. in the MySQLd section of conf, add user = MySQL. The above content describes the problems encountered during MySQL 5 installation. I hope you will get some benefits.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.