您好,欢迎来到聚游网。
搜索
您的当前位置:首页mysql数据库的密码问题_MySQL

mysql数据库的密码问题_MySQL

来源:聚游网


bitsCN.com mysql数据库的密码问题 今儿在做实验用到mysql数据库时,用户密码忘记了,让我也是找了半天: 现在给大家介绍下我自己的方法:用到了mysql自身的函数来测试的。 [html]mysql> select user,password,host from user; +------+------------------+-----------+ | user | password | host | +------+------------------+-----------+ | root | 773359240eb9a1d9 | localhost | | root | | fsailing1 | | root | | 127.0.0.1 | | root | 309e1248634a4f61 | % | +------+------------------+-----------+ 4 rows in set (0.00 sec) mysql> password("root"); ERROR 10 (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) 作者 chen861201 bitsCN.com

Copyright © 2019- juyouschool.com 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务