您好,欢迎访问一九零五行业门户网

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

以下的文章主要是对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
出现以下信息:
installing mysql system tables…  090724 12:05:13 [warning] option ‘max_join_size’: 
unsigned value 18446744073709551615 adjusted to 4294967295  090724 12:05:13 [warning] option ‘max_join_size’: 
unsigned value 18446744073709551615 adjusted to 4294967295  error: 1062 duplicate entry ‘localhost-’ for key 1  090724 12:05:13 [error] aborting  090724 12:05:13 [note] /usr/local/mysql5/libexec/mysqld: shutdown complete  installation of system tables failed!  examine the logs in /var/lib/mysql5 for more information.  you can try to start the mysqld daemon with:  /usr/local/mysql5/libexec/mysqld –skip-grant &  and use the command line tool  /usr/local/mysql5/bin/mysql to connect to the mysql  database and look at the grant tables:  http://www.knowsky.com/  shell> /usr/local/mysql5/bin/mysql -u root mysql  mysql> show tables  try ‘mysqld –help’ if you have problems with paths. using –log  gives you a log in /var/lib/mysql5 that may be helpful.  the latest information about mysql is available on the web at  http://www.mysql.com  please consult the mysql manual section: ‘problems running mysql_install_db’,  and the manual section that describes problems on your os.  another information source is the mysql email archive.  please check all of the above before mailing us!  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] 6633  [root@localhost bin]# 090724 12:05:34 [warning] option ‘max_join_size’: 
unsigned value 18446744073709551615 adjusted to 4294967295  090724 12:05:34 [warning] option ‘max_join_size’: 
unsigned value 18446744073709551615 adjusted to 4294967295  090724 12:05:34 [error] fatal error: please read “security” 
section of the manual to find out how to run mysqld as root!  090724 12:05:34 [error] aborting  090724 12:05:34 [note] /usr/local/mysql5/libexec/mysqld: shutdown complete  [1]+ exit 1 /usr/local/mysql5/libexec/mysqld –skip-grant  
解决办法:在/etc/my.conf中的mysqld这一节中加入:user=mysql,以上的相关内容就是对mysql 5安装遇到的问题的介绍,望你能有所收获。
其它类似信息

推荐信息