473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Moving from 7.x to 8.0beta4 with a backup

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had been running 7.x under cygwin (about 2 versions behind the latest
cygwin has), but cygserver stopped running on my last cygwin update, and
it seemed easier to move to 8.0 than to coax cygserver back to life.
Fortunately, I had a quite recent pg_dumpall, so I installed 8.0
(easy!), created a test database and verified I could do something, and
then set about restoring from my backup.

It appears that Tools > Backup or Tools > Restore in pgAdmin works at
the database level, not for everything on the server, so I tried

/pathtobeta4/psql.exe template1 < database.backup

It prints

$ /cygdrive/c/Program\ Files/PostgreSQL/8.0.0-beta4/bin/psql.exe template1 < da
tabase.backup
Password:
psql: FATAL: password authentication failed for user "user name"

where user name is the name of the user created in database.backup
(unfortunately, I had put no password on my cygwin installation). I
tried adding a -W option to psql, to no avail. I tried creating a user
of the proper name in pgAdmin and giving a password -- or no password,
to no avail. I tried adding ... PASSWORD 'thepassword' ... in the
CREATE USER statement in database.backup, to no avail.

Any suggestions? I'm guessing it's an easy answer that just escapes me.

<*>

Once I get that done, I might as well get rid of the cygwin PostgreSQL.
Is there any problem in simply uninstalling it using cygwin setup?

Thanks,

Bill
- --
Bill Harris
Facilitated Systems
http://facilitatedsystems.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: For more information, see http://www.gnupg.org

iD8DBQFBm3l13J3HaQTDvd8RAns8AJ9ufqK+dfpMpZ2DH3gdCB 6On+sGpQCdEO/B
VFXSisxbjzJtOku/wWvgg78=
=X3f2
-----END PGP SIGNATURE-----
Nov 23 '05 #1
1 2613
Bill Harris <bi*********@facilitatedsystems.com> writes:
$ /cygdrive/c/Program\ Files/PostgreSQL/8.0.0-beta4/bin/psql.exe template1 < da
tabase.backup
Password:
psql: FATAL: password authentication failed for user "user name"


It was a relatively easy answer. I temporarily edited pg_hba.conf to
allow users without passwords, I created the user in question, and I
made small edits to the start of my backup file, and it all worked well.

Bill
--
Bill Harris
Facilitated Systems
http://facilitatedsystems.com/
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jean-Philippe Blais | last post by:
Hi, I want to move some Oracle (V8.1.7) databases using a system (OS: AIX 4.3.3) backup and restoring it on another server (same hardware and os version) with different hostname and IP address....
1
by: Tom Loach | last post by:
I have user that we just migrated his Access database to SQL Server. All went well with the migration, but then he came up with another requirement to be able to replicate the database to a local...
1
by: Burt | last post by:
My company needs to move a 30 Gig SQL Server across the country as soon as possble on July 1. Turns out moving the full db across the network takes a few hours. I'd like to move a full copy of...
6
by: Hemant Shah | last post by:
Folks, I need to move HOME directory of an instance to another directory. What is the best way of doing it? Is changing password file enough? or dies DB2 store this info in it's own config? ...
3
by: genojoe | last post by:
I have tried everything I can think of to move records from one Access database to another. It should not be that hard. Read on.... I have identical access mdb's. One contains data; one...
3
by: Thiagu.M | last post by:
Hi All i dont have much experience in databases or Mysql.i have my data in development m/c with Mysql 4.1.12, i have to move them to production m/c with Mysql 5.0.3 .when tried it showed error...
2
by: db2dude | last post by:
Hello all, I have a database around 600GB and all tables were self-created by the application. Hence, we have only one huge SMS tablespace where all the tables are stored. To get better...
3
by: Marc C | last post by:
Hello, I have a SQL 2000 installation on a small partion that I would like to move to a second larger partion on the same disk array array with the config as follows: d: full installation of prod...
8
by: mvsguy | last post by:
We currently have DB/2 8.1 running on z/OS 1.5. I need to move it to DB/2 8.1 on z/OS 1.8. Not knowing much about DB/2 admin, I'm at a loss as where to start. Can someone point me to a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.