全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3750|回复: 18
打印 上一主题 下一主题

SHINKO 请看过来,9月29日的那个一键安装包似乎还是不灵

[复制链接]
跳转到指定楼层
1#
发表于 2009-10-16 16:47:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
前两天用的LNMP.ZIP的,装mysql后没有问题

今天用lnmp.zip的,和上次一样,还是mysql的问题

我做了如下操作

[root@s39 www]# service mysqld stop
mysqld: unrecognized service
[root@s39 www]# yum install -y mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.arcticnetwork.ca
* updates: mirrors.easynews.com
* addons: centos.arcticnetwork.ca
* extras: mirror.stanford.edu
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.i386 0:5.0.77-3.el5 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Running transaction check
---> Package perl-DBD-MySQL.i386 0:3.0007-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
Package                    Arch             Version                     Repository           Size
===================================================================================================
Installing:
mysql-server               i386             5.0.77-3.el5                updates             9.8 M
Installing for dependencies:
perl-DBD-MySQL             i386             3.0007-2.el5                base                148 k

Transaction Summary
===================================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 9.9 M
Downloading Packages:
(1/2): perl-DBD-MySQL-3.0007-2.el5.i386.rpm                                 | 148 kB     00:00
(2/2): mysql-server-5.0.77-3.el5.i386.rpm                                   | 9.8 MB     00:01
---------------------------------------------------------------------------------------------------
Total                                                              3.6 MB/s | 9.9 MB     00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-DBD-MySQL                                    [1/2]
  Installing     : mysql-server                                      [2/2]

Installed: mysql-server.i386 0:5.0.77-3.el5
Dependency Installed: perl-DBD-MySQL.i386 0:3.0007-2.el5
Complete!
[root@s39 www]# yum install -y php-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.arcticnetwork.ca
* updates: mirrors.easynews.com
* addons: centos.arcticnetwork.ca
* extras: mirror.stanford.edu
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package php-common.i386 0:5.1.6-23.2.el5_3 set to be updated
---> Package php-pdo.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
Package                Arch             Version                         Repository           Size
===================================================================================================
Installing:
php-mysql              i386             5.1.6-23.2.el5_3                updates              85 k
Installing for dependencies:
php-common             i386             5.1.6-23.2.el5_3                updates             151 k
php-pdo                i386             5.1.6-23.2.el5_3                updates              64 k

Transaction Summary
===================================================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 300 k
Downloading Packages:
(1/3): php-pdo-5.1.6-23.2.el5_3.i386.rpm                                    |  64 kB     00:00
(2/3): php-mysql-5.1.6-23.2.el5_3.i386.rpm                                  |  85 kB     00:00
(3/3): php-common-5.1.6-23.2.el5_3.i386.rpm                                 | 151 kB     00:00
---------------------------------------------------------------------------------------------------
Total                                                              138 kB/s | 300 kB     00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-common                                        [1/3]
  Installing     : php-pdo                                           [2/3]
  Installing     : php-mysql                                         [3/3]

Installed: php-mysql.i386 0:5.1.6-23.2.el5_3
Dependency Installed: php-common.i386 0:5.1.6-23.2.el5_3 php-pdo.i386 0:5.1.6-23.2.el5_3
Complete!
[root@s39 www]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@s39 www]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.1.39-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> quit
Bye
[root@s39 www]# service mysqld stop
Stopping MySQL:                                            [FAILED]
[root@s39 www]# service mysqld restart
Stopping MySQL:                                            [FAILED]
Initializing MySQL database:  WARNING: The host 's39.fsck' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
091016 16:42:19 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4         294967295
091016 16:42:19 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4         294967295
091016 16:42:19 [ERROR] /usr/libexec/mysqld: unknown variable 'table_open_cache=64'
Installation of system tables failed!

Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/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/mysql 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/bin/mysqlbug script!
                                                           [FAILED]

不知道为什么启动和停止MYSQL服务 失败
2#
发表于 2009-10-16 16:57:47 | 只看该作者
mysql用了最新版,可能有问题吧,你试下旧的能不能安装
3#
发表于 2009-10-16 17:00:45 | 只看该作者

回复 1# 的帖子

yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers

安装一键安装包前都有安装不?
4#
发表于 2009-10-16 17:05:21 | 只看该作者
我用的挺好的
5#
发表于 2009-10-16 17:08:49 | 只看该作者
原帖由 mojave 于 2009-10-16 17:05 发表
我用的挺好的


是用的9月29日的嘛?

29日的,我更新了mysql版本..

现在看来,还是7月的版本是稳定版~
6#
发表于 2009-10-16 17:12:19 | 只看该作者

回复 5# 的帖子

是的。29号的
7#
发表于 2009-10-16 17:14:10 | 只看该作者
那么楼主安装不上.可能是按照环境有问题..就是那些yum安装的安装不上了~

可能,具体原因还是要一步一步看错误~
8#
发表于 2009-10-16 17:14:47 | 只看该作者
我安装的时候就是phpmyadmin没安装上。链接失效了。没什么影响。
9#
发表于 2009-10-16 17:27:13 | 只看该作者

回复 5# 的帖子

楼主可以选择安装旧版本的mysql。
10#
 楼主| 发表于 2009-10-16 17:41:41 | 只看该作者
谢谢 C 大和SHINKO, 我有YUM -y install gcc gcc-c++等所有

我还是选择大LNMP.zip的这个包吧,感谢mojave,xiejiji 关注
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-11 16:23 , Processed in 0.127251 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表