473,671 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The "first day" with PostgreSQL and trouble with this

4 New Member
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 4389
rski
700 Recognized Expert Contributor
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 New Member
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 Recognized Expert Contributor
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 New Member
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 New Member
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 Recognized Expert Contributor
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
2833
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: /esserman/newseltter/2004/03/ eg: /yachtservices/excel/reports/ I wish to return only:
9
4099
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 my site, where there would be a paragraph produced by Javascript to say: 1995: Something notable happened 2001: Something else of note happened I found something similar on http://www.freesticky.com, but it isn't really
5
7926
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 2005", (or a timestamp that could be formatted). I have been thinking about creating a loop that increases the source date $myDate with 24*60*60 until date("l", $myDate) = "Monday" but maybe I am trying too complicated solutions and overseeing...
36
524
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 Source" manner, and in an attempt to build a ground-swell of support to convince the folks at Microsoft to add it. Proposal: "first:" "last:" sections in a "foreach" block The problem: The foreach statement allows iterating over all the...
5
3192
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 = preg_match('/(+)a|sc(,?.*$)/i', $orderBy, $matchArray); $orderBy = substr($orderBy, 0, strpos($orderBy, $matchArray)) . ' ' . $ascArray] . substr($orderBy, strpos($orderBy, $matchArray) +
3
3088
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 =server.createobject("ADODB.connection") objConn.open "DSN=Photo" Dim sqlSELsite,ObjRSSel sqlSELsite = "SELECT Name FROM tblbwday WHERE B'day ="& date() &" " '
3
5029
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 this was quite a challenge. I mean, all in all, the experience was interesting and because it was harder then it should have been, more educational. Still, I've been told almost every other program reads "low byte first" and thinking about it,...
0
8481
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8602
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7441
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6234
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4412
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.