Chinaunix首页 | 论坛 | 博客
  • 博客访问: 97616
  • 博文数量: 28
  • 博客积分: 310
  • 博客等级: 二等列兵
  • 技术积分: 680
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-24 09:57
文章存档

2013年(10)

2012年(18)

分类:

2012-10-24 16:41:59

原文地址:设置mysql密码 作者:ztguang



[root@localhost ~]# mysqladmin -u root -p password '123456' //密码设为123456
Enter password:                                             //输入原密码 
[root@localhost ~]# mysql -u root -p                        //进入数据库
Enter password:                                             //输入新密码123456
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.0.77 Source distribution

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

mysql> show databases;
阅读(577) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~