473,407 Members | 2,629 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,407 software developers and data experts.

The "first day" with PostgreSQL and trouble with this

4
Hi all,

i have a sql scripts and i need to make new database based on this scripts but i dont know how, because this ist my "first meet" with this PostgreSQL. I need that for project to school, and i really need your help. Is something like "how to" manual?

thx a lot.
Jan 10 '08 #1
6 4374
rski
700 Expert 512MB
I guess there is a query creating database in the script, co you can simply do

psql < your_script

from a command line
Jan 10 '08 #2
Falcco
4
What exactly i need to run PostgreSQL on Win XP?
Because I installed the package from http://www.postgresql.org/ (postgresql-8.2.6-1.zip), but if I put the command "createdb test" to command prompt, then i must to give password and next i have error - something like this:

it`s impossible to make a connect with db postgres: FATAL: password authentication failed for user "some user"

thx for help
Jan 10 '08 #3
rski
700 Expert 512MB
What exactly i need to run PostgreSQL on Win XP?
Because I installed the package from http://www.postgresql.org/ (postgresql-8.2.6-1.zip), but if I put the command "createdb test" to command prompt, then i must to give password and next i have error - something like this:

it`s impossible to make a connect with db postgres: FATAL: password authentication failed for user "some user"

thx for help
I do not use postgres under WinXp but try like this
createdb -U postgres test
tell me if it works. If not find a file pg_hba.conf and show it here (show only rows not begging with # )
Jan 10 '08 #4
Falcco
4
Ou thx, it works.

If I put the command with the flags "... -U postgres test" than I created new database without the problems.
Jan 10 '08 #5
Falcco
4
hmm ...

i try to put command "psql -U testuser -W testDB", i see this same error: psql: FATAL: pasword authentication failed for user "my user" ...

i really dont know where ist the catch with authentication.
Jan 10 '08 #6
rski
700 Expert 512MB
hmm ...

i try to put command "psql -U testuser -W testDB", i see this same error: psql: FATAL: pasword authentication failed for user "my user" ...

i really dont know where ist the catch with authentication.
First of all if you want ro create user with password you should do
createuser -P username
Then you should change the pg_hba file, and put password authentication or trust authentication. It's hard to describe it here, just look at postgresql.org for more specific description, or describe what you want to achieve, and I will try to give you a solution.
Jan 10 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: | last post by:
Could some help m figure out to strip an unknown range of characters in a path between the first "/" and "/" found in a folder path somewhere on my site. eg: /catamaranco/sales/boat/1.asp eg:...
9
by: Marcus Sheen [UK] | last post by:
Have done searches for similar questions, but cannot find anything. Nor can I find any resources via Google (Javascript Source etc). Thinking about implementing a topical "On This Day" feature on...
5
by: Martien van Wanrooij | last post by:
I would like to retrieve, let us say, the First Monday after a certain date, so my (imaginary) function could be something like echo weekdayAfter("28 July 2005", "Monday") should return "1 August...
36
by: James Curran | last post by:
I'd like to make the following proposal for a new feature for the C# language. I have no connection with the C# team at Microsoft. I'm posting it here to gather input to refine it, in an "open...
5
by: comp.lang.php | last post by:
$orderBy = 's.app_date desc, s.last_name asc, s.first_name asc, s.mi asc'; if ($_REQUEST) { $ascArray = array('asc' => 'desc', 'desc' => 'asc'); // ARRAY OF ALL ORDERING POSSIBILITIES $junk =...
3
by: divya | last post by:
Hi, I have a table tblbwday with 2 fields Name and Birthday.I have written this script for displaying evryday names of the people on that day. <% set objConn...
3
blazedaces
by: blazedaces | last post by:
I was working all day yesterday (and will probably be for most of today) with bytecode where java wrote the bytecode and matlab read it... I had never worked with bytecode in great detail before so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.