about gpdb password md5,gpdbmd5

來源:互聯網
上載者:User

about gpdb password md5,gpdbmd5

gtlions=# alter user gtlions password 'gtlions';ALTER ROLEgtlions=# select * from pg_shadow; usename | usesysid | usecreatedb | usesuper | usecatupd | userepl |               passwd                | valuntil | useconfig---------+----------+-------------+----------+-----------+---------+-------------------------------------+----------+----------- gtlions |       10 | t           | t        | t         | t       | md56c7d333ce7a7f5882bdc5a232c107d81 |          |(1 row)gtlions=# \qgtlions:~ gtlions$ pythonPython 2.7.6 (default, Sep  9 2014, 15:04:36)[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import hashlib>>> password = 'md5' + hashlib.md5("gtlionsgtlions").hexdigest()>>> password'md56c7d333ce7a7f5882bdc5a232c107d81'



-EOF-

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.