mysql 初探
来源:互联网 发布:淘宝联盟站长 编辑:程序博客网 时间:2024/05/07 19:17
1 问题 用用户登录时 出现如下日志
D:\Program Files\mysql-5.6.24-win32\bin>mysql -u yutest -p
Enter password: ******
ERROR 1045 (28000): Access denied for user 'yutest'@'localhost' (using password:
YES)
查看用户yutest 的权限
mysql> show grants for 'yutest';
+-------------------------------------------------------------------------------
------------------------+
| Grants for yutest@%
|
+-------------------------------------------------------------------------------
------------------------+
| GRANT USAGE ON *.* TO 'yutest'@'%' IDENTIFIED BY PASSWORD '*E710DC2512FCF6F18F
E0D652B53290DCB11F3334' |
+-------------------------------------------------------------------------------
------------------------+
1 row in set (0.00 sec)
其中yutest 在'%'上是全权限, 所以在localhost登录失败,所以用如下语句,赋予权限
mysql> grant all privileges on testdb.* to 'yutest'@'localhost' IDENTIFIED BY '4
56789';
Query OK, 0 rows affected (0.02 sec)
在用密码登录,登录成功
D:\Program Files\mysql-5.6.24-win32\bin>mysql -u yutest -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 5.6.24 MySQL Community Server (GPL)
- 初探MySQL
- mysql初探
- Mysql初探
- Mysql--初探
- Mysql--初探
- mysql 初探
- MySQL初探
- mysql初探
- MySQL初探
- mysql初探
- JDBC MYSQL 初探
- JDBC MYSQL 初探
- JDBC MYSQL 初探
- mysql日志初探
- 毕业设计--MySqL的初探
- linux下mysql初探
- MySQL分区性能初探
- php&mysql初探
- Converting Index-Organized Tables to Regular Tables
- PHP安装配置
- R类找不到的问题
- 两位数乘以一位数
- Java基础之获取Class对象的三种方式
- mysql 初探
- Zookeeper的安装和配置(集群模式)
- C# Timer类详解
- Swift学习笔记(二)
- hive join详解
- android5.1 PowerManagerService和DisplayPowerControler、DisplayPowerState关系
- 那些著名或非著名的iOS面试题(上)
- 121.LeetCode Best Time to Buy and Sell Stock(easy)[数组 动态规划]
- Android Studio系列教程二--基本设置与运行