Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Getting started after Installation

 
   Database Forums (Home) -> Ingres RSS
Next:  Let Us Get MOre Traffic And Sales 45844  
Author Message
w1ndy

External


Since: Aug 06, 2008
Posts: 2



(Msg. 1) Posted: Wed Aug 06, 2008 4:14 pm
Post subject: Getting started after Installation
Archived from groups: comp>databases>ingres (more info?)

I've loaded Ingres Database (linux version) on Ubuntu Hardy 8.04, and
i've compiled the PHP Driver 2.0.0 ingres.so module, when I start
apache and ingstart and load a php page with phpinfo() it shows the
ingres information. I can tried some of the example code and I am able
to output the version, but I am having a problem connecting to the
database (demodb). I assume it's because I am not providing the
correct credentials.

So now where do I start to from here? can anybody point me to a
specific manual or documentation that can help me create/edit
users,tables, db... etc.

Thanks!

 >> Stay informed about: Getting started after Installation 
Back to top
Login to vote
w1ndy

External


Since: Aug 06, 2008
Posts: 2



(Msg. 2) Posted: Wed Aug 06, 2008 4:49 pm
Post subject: Re: Getting started after Installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I found a post on the ingres forum, and I guess i dont need a username
and password unless its a private db, and the demodb shouldn't be, i
was able to connect to it when i tried this on windows no problem. im
stuck i guess Smile

 >> Stay informed about: Getting started after Installation 
Back to top
Login to vote
withdefault

External


Since: Nov 27, 2007
Posts: 3



(Msg. 3) Posted: Wed Aug 06, 2008 11:50 pm
Post subject: Re: Getting started after Installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 7 Aug, 00:49, w1ndy wrote:
> I found a post on the ingres forum, and I guess i dont need a username
> and password unless its a private db, and the demodb shouldn't be, i
> was able to connect to it when i tried this on windows no problem. im
> stuck i guess Smile

On windows the user that installed windows will be the user that
created demodb. If the same user is the one running PHP then you will
be able to connect without problem.

Can you check the user who owns the database demodb, the user who is
running PHP and the user who is running apache?

You should be able to find more information and examples on the Ingres
wiki (http://community.ingres.com/wiki/Category:Examples) which
includes examples of connections with credentials and changing the
effective user.
 >> Stay informed about: Getting started after Installation 
Back to top
Login to vote
Grant Croker

External


Since: Aug 07, 2008
Posts: 2



(Msg. 4) Posted: Thu Aug 07, 2008 9:34 am
Post subject: Re: [Info-Ingres] Getting started after Installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On/El 07/08/08 01:49, w1ndy wrote/escribió:
> I found a post on the ingres forum, and I guess i dont need a username
> and password unless its a private db, and the demodb shouldn't be, i
> was able to connect to it when i tried this on windows no problem. im
> stuck i guess Smile
>
Without knowing the error you are getting when issuing the
ingres_connect() it is a bit difficult to know what the problem is.
However the normal stumbling block is not having the web server process
owner as a valid Ingres user. I am not that familiar with Ubuntu,
however if it is like Debian the Apache web server runs as the user
"www-data". The process owner of Apache can be determined using:

ps -fe | grep apache

To add that user to ingres run the following as the ingres user:

sql iidbdb <<EOSQL
create user "www-data"\g
commit\g
\q
EOSQL

From there you should be able to connect to demodb using:

$link = ingres_connect("demodb");
if (!is_resource($link))
{
echo ingres_errno() . " - " . ingres_error();
}
....

If not then can you post the error you get. That should help us track
down the actual cause.

regards

grant

ps the steps for setting up Apache on Ubuntu may be similar to those
outlined in
http://community.ingres.com/wiki/Ingres_with_Apache_on_Debian_Etch.
Since Ubuntu is a derivative of Debian there should be many similarities
between the two.

--
Grant Croker - Ingres PHP, Ruby and Python maintainer
I first saw this program in the same week that evidence was discovered
of life on Mars. This is more exciting. -On the subject of Creatures,
an artificial-life computer program
 >> Stay informed about: Getting started after Installation 
Back to top
Login to vote
Grant Croker

External


Since: Aug 07, 2008
Posts: 2



(Msg. 5) Posted: Thu Aug 07, 2008 10:55 am
Post subject: Re: [Info-Ingres] Getting started after Installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On/El 07/08/08 01:49, w1ndy wrote/escribió:
> I found a post on the ingres forum, and I guess i dont need a username
> and password unless its a private db, and the demodb shouldn't be, i
> was able to connect to it when i tried this on windows no problem. im
> stuck i guess Smile
>
Hi w1ndy,

Without knowing the error you are getting when issuing the
ingres_connect() it is a bit difficult to know what the problem is.
However the normal stumbling block is not having the web server process
owner as a valid Ingres user. I am not that familiar with Ubuntu,
however if it is like Debian the Apache web server runs as the user
"www-data". The process owner of Apache can be determined using:

ps -fe | grep apache

To add that user to ingres run the following as the ingres user:

sql iidbdb <<EOSQL
create user "www-data"\g
commit\g
\q
EOSQL

From there you should be able to connect to demodb using:

$link = ingres_connect("demodb");
if (!is_resource($link))
{
echo ingres_errno() . " - " . ingres_error();
}
....

If not then can you post the error you get. That should help us track
down the actual cause.

regards

grant

ps the steps for setting up Apache on Ubuntu may be similar to those
outlined in
http://community.ingres.com/wiki/Ingres_with_Apache_on_Debian_Etch.
Since Ubuntu is a derivative of Debian there should be many similarities
between the two.

--
Grant Croker - Ingres PHP, Ruby and Python maintainer
I first saw this program in the same week that evidence was discovered
of life on Mars. This is more exciting. -On the subject of Creatures,
an artificial-life computer program




--
Grant Croker - Ingres PHP, Ruby and Python maintainer
The teacher usually learns more than the pupils. Isn't that true?
"It would be hard to learn much less than my pupils," came a low growl
from somewhere on the table, "without undergoing a pre-frontal
lobotomy."


--
Grant Croker - Ingres PHP, Ruby and Python maintainer
The teacher usually learns more than the pupils. Isn't that true?
"It would be hard to learn much less than my pupils," came a low growl
from somewhere on the table, "without undergoing a pre-frontal
lobotomy."
 >> Stay informed about: Getting started after Installation 
Back to top
Login to vote
Teresa

External


Since: Aug 08, 2008
Posts: 1



(Msg. 6) Posted: Fri Aug 08, 2008 6:17 am
Post subject: Re: Getting started after Installation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Regarding the following pointer:

>You should be able to find more information and examples on the Ingres
>wiki (http://community.ingres.com/wiki/Category:Examples) which
>includes examples of connections with credentials and changing the
>effective user.

Not all examples on the Ingres Community Wiki have a category of
Examples. This is because some of the code examples referenced on the
wiki are stored in the Subversion Code repository & there is a pointer
to these examples with an explanation from the general Article page.

Articles about using Ingres & integration with other technologies can
be found at http://community.ingres.com/wiki/Ingres_Articles (Tech
Tips in the side naviagation pane) or http://community.ingres.com/wiki/Ingres_Examples
(Coding Samples in the side navigation pane).

As an aside, if you have any useful tips on using Ingres or Code
Samples that you would like to share with the Ingres Community via the
Ingres Community Wiki, please submit them as we all benefit from this
information. If you have the info but don't have time to learn how
to create articles on the wiki, feel free to email me with the
information & I'll gladly post it for you, giving you proper credit
for the contribution.

We are also very interested in any feedback you may have on the
Community Wiki as we are constantly looking to improve it. It's come
a long way but still has lots of room for improvement.

Regards,
Teresa
 >> Stay informed about: Getting started after Installation 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IJ: Getting started - I am continuing to dabble gently with MinGW late at night, but I may have to get serious about doing some janitoring. What's putting me off is the chore of having to assemble the correct cocktail of kernel, compiler, tools, and whatnot. Would it be....

[Info-Ingres] OR for Dummies/Getting Started - Hi Everyone, Is there an OR for Dummies manual. I've looked in the standard Ingres documentation set and can't find anything. Hints would be appreciated. Martin Bowes -- Random Duckman Quote #30: Duckman - Its about as much fun as having your butt an...

Process hanging on Endselect - We have a process which needs to produce an average figure over the last 16 qualifying weeks. The way it currently works is to select the rows from the two relevant tables ordered by date descending, then in a select loop check if the week qualifies and...

E_DM9063_LK_TABLE_MAXLOCKS - We have a weekly job that takes a COPY.OUT from the "Live" database and then does a COPY.IN to a development database in a separate installation. I've noticed that in one instance, the ERRLOG is getting a number of messages of the general form...

Help fo vnode - I am going to use the ingres replication. For that I have set vnodes using "netutil". I have configured all the things for replication on my local database using repmgr. Now I want to move the Configuration to the Remote Server database. When I...
   Database Forums (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]