设置mysql密码简单示例
设置mysql密码简单示例,供初学者参考。
[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;
您可能感兴趣的文章:
设置mysql密码简单示例
MySQL命令行修改密码(示例)
yum方式安装MySQL并设置密码
修改MYSQL的root权限与密码的方法
mysql root密码忘记怎么办 mysql中root密码修改方法
mysql root修改密码与忘记密码找回方法
Ubuntu下安装搭建MySQL环境步骤介绍
MySQL数据库设置远程访问权限的方法
mysql5.5 版本强制设置复杂的密码配置
ubuntu下mysql配置