在安装包时:[root@localhost Mysql]# rpm -ivh MySQL-server-community-5.1.53-1.rhel4.i386.rpm
warning: MySQL-server-community-5.1.53-1.rhel4.i386.rpm: 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!
Notes regarding SELinux on this platform:
=========================================
The default policy might cause server startup to fail because it is
not allowed to access critical files. In this case, please update
your installation.
The default policy might also cause inavailability of SSL related
features because the server is not allowed to access /dev/random
and /dev/urandom. If this is a problem, please do the following:
1) install selinux-policy-targeted-sources from your OS vendor
2) add the following two lines to /etc/selinux/targeted/src/policy/domains/pro gram/mysqld.te:
allow mysqld_t random_device_t:chr_file read;
allow mysqld_t urandom_device_t:chr_file read;
3) cd to /etc/selinux/targeted/src/policy and issue the following command:
make load
Starting MySQL...[ OK ]
Giving mysqld 2 seconds to start
看样子也装上了,并且我查看了下端口3306已经被占用了,但是我想用mysqladmin为root用户设置密码时,在/usr/bin下并没有找到mysqladmin工具,难道这个软件包未包含mysqladmin,我用rpm -ql MySQL-server-community-5.1.53-1.rhel4.i386.rpm 查看该包有多少文件时,rpm报如下内容:
package MySQL-server-community-5.1.53-1.rhel4.i386.rpm is not installed
这个是怎么回事, 我有用mysql 命令准备登录,结果找不到myql, 想请教牛人,怎么解决啊? |