在LINUX上运行下面的出现错误
rpm -ivh MySQL-server-5.5.25-1.rhel5.i386.rpmMySQL-client-5.5.25-1.rhel5.i386.rpm
Preparing...
########################################### [100%]
1:MySQL-client ########################################### [ 50%]
2:MySQL-server ########################################### [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 nd3 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!
[root@nd3 ~]# /usr/bin/mysqladmin -u root password 'System11s'
/usr/bin/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@nd3 ~]# /usr/bin/mysqladmin -u root password '11system'
/usr/bin/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@nd3 ~]# /usr/bin/mysqladmin -u root -h nd3 password 'System11s'
/usr/bin/mysqladmin: connect to server at 'nd3' failed
error: 'Can't connect to MySQL server on 'nd3' (111)'
Check that mysqld is running on nd3 and that the port is 3306.
You can check this by doing 'telnet nd3 3306'