QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1786|回复: 2

mysql怎么设置root密码的?

[复制链接]
发表于 2005-5-6 13:31:53 | 显示全部楼层 |阅读模式
我忘记了。。。他提示一段命令。。可惜被我关了。。

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

请问怎么设置??第一次使用。。 :D
 楼主| 发表于 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...................................[失败]

[root@localhost ~]# /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!
回复

使用道具 举报

 楼主| 发表于 2005-5-6 16:31:32 | 显示全部楼层
以解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 12:08 , Processed in 0.080853 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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