postgresql start shutdown

Java代码  postgresql start shutdown
  1. ./postgres -D /data/postgresql/ >> logfile 2>&1 &  
  2.  sed -i "s/#port = 5432/port = 11780/g" pg_data/postgresql.conf  
  3. netstat -antlp |grep 5432/11780  
  4. kill -15/9 pid  
  5. kill -INT 'head -i /home/sequoiadb/pgsql/pg_data/postgresqlmaster.pid'  
  6. http://www.php100.com/manual/PostgreSQL8/  

 http://www.php100.com/manual/PostgreSQL8/

Sql代码  postgresql start shutdown
  1. /Volumes/pgAdmin3/pgAdmin3.app/Contents/SharedSupport/pg_dump --host 121.42. *.*--port 5432 --username "postgres" --no-password  --format custom --verbose --file "schemaName" "dbName"  

 

Java代码  postgresql start shutdown
  1. /Volumes/pgAdmin3/pgAdmin3.app/Contents/SharedSupport/pg_restore --host ip --port 11780 --username "sdbadmin" --dbname "foo" --no-password  --schema lfchat --verbose "/Users/jade/Documents/lfchat_of_postgresql_5432"  

 

Java代码  postgresql start shutdown
  1. postgres@iZ2893a7a8cZ:/usr/local/postgresql/bin$ ./pg_dump -n lfchat -d postgres -hlocalhost -p5432 -w -f ./postgresql.dump  
  2. postgres@iZ2893a7a8cZ:/usr/local/postgresql/bin$ ls  
  3. clusterdb   createuser  dropuser  logfile            pg_basebackup  pg_controldata  pg_dumpall      pg_resetxlog  pg_test_fsync   pg_xlogdump      postmaster  vacuumdb  
  4. createdb    dropdb      ecpg      oid2name           pgbench        pg_ctl          pg_isready      pg_restore    pg_test_timing  postgres         psql        vacuumlo  
  5. createlang  droplang    initdb    pg_archivecleanup  pg_config      pg_dump         pg_receivexlog  pg_standby    pg_upgrade      postgresql.dump  reindexdb  
  6. postgres@iZ2893a7a8cZ:/usr/local/postgresql/bin$   
上一篇:计算:表中varchar类型的字段能容纳的最大字符数?


下一篇:MVC文件上传07-使用客户端jQuery-File-Upload插件和服务端Backload组件裁剪上传图片