- 论坛徽章:
- 0
|
新开一个虚拟机器 网上下MySQL-server-community-5.0.89-0.rhel5.i386.rpm;
MySQL-client-community-5.0.89-0.rhel5.i386.rpm;
发现失败
不知道原因?
执行过程如下
[root@localhost mysql]# rpm -ivh MySQL-server-community-5.0.89-0.rhel5.i386.rpm;
warning: MySQL-server-community-5.0.89-0.rhel5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL......Manager of pid-file quit without updating file.[失败]
Giving mysqld 2 seconds to start
[root@localhost mysql]# rpm -ivh MySQL-client-community-5.0.89-0.rhel5.i386.rpm;
warning: MySQL-client-community-5.0.89-0.rhel5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
[root@localhost mysql]# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost mysql]# mysqladmin -u root password 'bestbrain'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[root@localhost mysql]# cd /usr/bin/
[root@localhost bin]# mysqladmin -u root password 'bestbrain'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[root@localhost bin]#
(我开始用rpm -qa | grep mysql*
之后找出mysql-3.23.58-1
之后用 rpm - e 删除mysql-3.23.58-1这个发现失败oot@localhost mysql]# rpm -e mysql-3.23.58-1
error: Failed dependencies:
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
libmysqlclient.so.10 is needed by (installed) MySQL-python-0.9.1-6
libmysqlclient.so.10 is needed by (installed) MyODBC-2.50.39-12
libmysqlclient.so.10 is needed by (installed) qt-MySQL-3.1.2-13
mysql is needed by (installed) MySQL-python-0.9.1-6 ? 问什么原因 ,有没有什么强制删除的方法去掉这个
之后我安装rpm -ivh MySQL-server-community-5.0.89-0.rhel5.i386.rpm
发现失败 error: Failed dependencies:
libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-community-5.0.89-0.rhel5
libc.so.6(GLIBC_2.4) is needed by MySQL-server-community-5.0.89-0.rhel5
rtld(GNU_HASH) is needed by MySQL-server-community-5.0.89-0.rhel5
MySQL conflicts with mysql-3.23.58-1
[root@localhost mysql]# ,不知道什么原因 如何解决
) |
|