今儿在做实验用到mysql数据库时,用户密码忘记了,让我也是找了半天:现在给大家介绍下我自己的方法:用到了mysql自身的函数来测试的。
mysql> password("root");
error 1064 (42000): you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near 'password("root")' at line 1
mysql> select password("root");
+------------------+
| password("root") |
+------------------+
| 67457e226a1a15bd |
+------------------+
1 row in set (0.00 sec)
mysql> select password("chen");
+------------------+
| password("chen") |
+------------------+
| 309e1248634a4f61 |
+------------------+
1 row in set (0.00 sec)
如对本文有疑问, 点击进行留言回复!!
在Ubuntu/Linux环境下使用MySQL开放/修改3306端口和开放访问权限
ORM框架Peewee(高级连接)peewee连接池、主从、重连、ssh连接
记一次Mysql主从复制延迟,Waiting for dependent transaction to commit
网友评论