码迷,mamicode.com
首页 > 数据库 > 详细

about gpdb password md5

时间:2014-11-26 11:18:27      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   on   2014   ad   ef   as   sql   

gtlions=# alter user gtlions password 'gtlions';
ALTER ROLE
gtlions=# select * from pg_shadow;
 usename | usesysid | usecreatedb | usesuper | usecatupd | userepl |               passwd                | valuntil | useconfig
---------+----------+-------------+----------+-----------+---------+-------------------------------------+----------+-----------
 gtlions |       10 | t           | t        | t         | t       | md56c7d333ce7a7f5882bdc5a232c107d81 |          |
(1 row)

gtlions=# \q

gtlions:~ gtlions$ python
Python 2.7.6 (default, Sep  9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
>>> password = 'md5' + hashlib.md5("gtlionsgtlions").hexdigest()
>>> password
'md56c7d333ce7a7f5882bdc5a232c107d81'



-EOF-

about gpdb password md5

标签:io   ar   for   on   2014   ad   ef   as   sql   

原文地址:http://blog.csdn.net/gtlions/article/details/41512483

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!