<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>lxc on cubatic's blog</title><link>https://blog.121306.xyz/tags/lxc/</link><description>Recent content in lxc on cubatic's blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 13 Nov 2024 10:30:48 +0800</lastBuildDate><atom:link href="https://blog.121306.xyz/tags/lxc/index.xml" rel="self" type="application/rss+xml"/><item><title>pve postgresql</title><link>https://blog.121306.xyz/posts/postgresql/init/</link><pubDate>Wed, 13 Nov 2024 10:30:48 +0800</pubDate><guid>https://blog.121306.xyz/posts/postgresql/init/</guid><description>Install login to pve
bash -c &amp;#34;$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/postgresql.sh)&amp;#34; assume lxc container&amp;rsquo;s id is 201, then login to container
lxc-attach 201 or ssh root@your_container_ip reset password
sudo -u postgres psql ALTER USER postgres WITH PASSWORD &amp;#39;your_password&amp;#39;; create new user
CREATE USER your_username WITH PASSWORD &amp;#39;your_password&amp;#39;; create new database
CREATE DATABASE your_database_name; grant permission to user
GRANT ALL PRIVILEGES ON DATABASE your_database_name TO your_username; \c your_database_name GRANT ALL ON SCHEMA public TO your_username; Reference ProxmoxVE</description></item></channel></rss>