User Tools

Site Tools


Writing /var/www/html/conf/plugins.local.php failed
notes:postgres

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
notes:postgres [2015/08/11 13:54]
jiggak created
notes:postgres [2015/08/11 14:19]
jiggak
Line 1: Line 1:
-  -- basic access by nix user +<code sql> 
-  create role josh with login; +-- basic access by nix user 
-  create database edc owner josh; +create role josh with login; 
 +create database edc owner josh; 
 +</code>
  
 +<code>
 +-- run bcp in windows cmd to dump table
 +bcp Campaign out campaign.data -c -k -S (localdb)\Projects -T -d EDC
 +-- convert line endings to unix
 +dos2unix campaign.data
 +-- import data with psql
 +copy campaign from '/media/sf_D_DRIVE/pg_migrate/campaign.data' with null as '';
 +</code>
notes/postgres.txt · Last modified: 2015/08/17 14:05 by jiggak