zippo_qq 发表于 2005-5-6 13:31:53

mysql怎么设置root密码的?

我忘记了。。。他提示一段命令。。可惜被我关了。。

安装好mysql还么设置密码。。

请问怎么设置??第一次使用。。 :D

zippo_qq 发表于 2005-5-6 14:14:53

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'
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 https://order.mysql.com
Starting MySQL...................................[失败]

# /usr/bin/mysqladmin -u root password 123456
/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!

zippo_qq 发表于 2005-5-6 16:31:32

以解决
页: [1]
查看完整版本: mysql怎么设置root密码的?