您的位置:首页 > 数据库 > MySQL

mysql-修改root密码的方法

2011-02-23 00:58 302 查看
首先以root账户登录命令行

Enter password: **************
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 384
Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer

//就下面这一行而已,把单引号里面的内容改成自己的新密码,OK.

mysql> set password = password('newpassword');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: