PG数据库忘记了管理员账号和密码
一、核心原理(无需原密码)PostgreSQL 支持系统 postgres 用户免密本地登录,这是超级管理员级别的兜底权限,完全绕过数据库层面的账号密码校验,是重置管理员账号密码的核心依据,也是官方推荐的安全重置方式。 二、完整重置步骤(按顺序执行,必成功)步骤 1:切换系统 postgres 用户,免密进入 PG 18 终端(核心)直接执行以下命令,无需输入任何密码,即可登录 PG 18 数据库超级管理员终端(解决「忘记账号密码」核心问题): 12# 核心命令:指定18版本端口(默认5432),免密登录sudo -u postgres psql -p 5432 ✅ 执行成功后,终端会进入 PG 专属命令行,提示符变为:postgres=# → 表示已获取最高权限。 步骤 2:重置「默认管理员 postgres」密码(最常用)PG 默认的超级管理员账号就是 postgres,99% 的场景重置这个账号即可,在上述 postgres=# 终端中执行以下 SQL(直接复制): 123-- 重置postgres管理员密码,替换【你的新密码】为自定义密码(必填)ALTER USER p...
无标题
Hexo文章属性说明Front-matter 是文件开头的 YAML 或 JSON 代码块,用于配置写作设置。 以 YAML 格式书写时,Front-matter 以三个破折号结束;以 JSON 格式书写时,Front-matter 以三个分号结束。 设置 描述 默认值 layout 布局 config.default_layout title 标题 文章的文件名 date 建立日期 文件建立日期 updated 更新日期 文件更新日期 comments 开启文章的评论功能 true tags 标签(不适用于分页) categories 分类(不适用于分页) permalink 覆盖文章的永久链接. 永久链接应该以 / 或 .html 结尾 null excerpt 纯文本的页面摘要。 使用 该插件 来格式化文本 disableNunjucks 启用时禁用 Nunjucks 标签 {{ }}/{% %} 和 标签插件 的渲染功能 false lang 设...
测试mermaid和mathjax插件
数学公式 流程图graph TD; A-->B; A-->C; B-->D; C-->D; gantt dateFormat YYYY-MM-DD title Test GANTT diagram section A section Completed work :done, des1, 2014-01-06,2014-01-08 Active work :active, des2, 2014-01-09, 3d Future work : des3, after des2, 5d sequenceDiagram participant Alice participant John Alice->>John: Hello John, how are you? John->>Alice: Fine, thanks, and you? Alice->>John: I'm fine, too.
关于butterfly主题配置文件的说明
以下是themes/butterfly/_config.yml文件的翻译版本,可以复制进去替换原文件 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811...
What is m3u8?
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
Study Note
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment


