su - postgres
cd /usr/local/pgsql/bin
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
./createdb testdb01
./psql -d testdb01
\i 1.sql \*\import table to db
alter user postgres with password 'test';
PostgreSQL数据库配置与操作
su - postgres
cd /usr/local/pgsql/bin
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
./createdb testdb01
./psql -d testdb01
\i 1.sql \*\import table to db
alter user postgres with password 'test';
3242
6万+

被折叠的 条评论
为什么被折叠?