How to restrict who may read my entries?
Connecting to a remote database
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > PHP web-programming > Connecting to a remote database 18 August 2005 17:56:41

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Connecting to a remote database

R.S. Herhuth 18 August 2005 17:56:41
 Newbie alert!


I am able to connect to a SQL Server Database on my local network by
specifying the host as "testHost" the database is "DB". My question is
if I'm outside the network what is the correct syntax that I need to
call in the host in order to access the database?

Thanks,
ROn

--
PHP Windows Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Add comment
Matt Babineau 18 April 2002 22:58:02 permanent link ]
 Try to access the SQL DB by IP Address. If you want to access it from
outside you LAN, The machine the SQL DB is on has to have an external
IP.

Matt Babineau
Freelance Internet Developer
e: mbabineau@illuminat­istudios.com
p: 603.943.4237
w: http://www.illumina­tistudios.com



-----Original Message-----
From: R.S. Herhuth [mailto:ronherhuth@pop.mindspring.com]
Sent: Thursday, April 18, 2002 3:57 PM
To: php-windows@lists.p­hp.net
Subject: [PHP-WIN] Connecting to a remote database


Newbie alert!


I am able to connect to a SQL Server Database on my local network by
specifying the host as "testHost" the database is "DB". My question is
if I'm outside the network what is the correct syntax that I need to
call in the host in order to access the database?

Thanks,
ROn

--
PHP Windows Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


--
PHP Windows Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Add comment
Steff 19 April 2002 02:57:59 permanent link ]
 further on you should tell your DBMS that not only local scripts
(users), but also external users may access your database. this is done
by modifying the table "db" in the database "mysql". with this table you
can control which hosts may access your dbs. the simplest but also most
risky way is to set host = % and db = %. db = "DB" and host =
"your.remote.machin­e" (or for several domains or IP-ranges) would be
safer already (the rest of the fields/permissions to be set per row are
mostly self-explaining).


HTH steff

Matt Babineau wrote:> Try to access the SQL DB by IP Address. If you want to access it from> outside you LAN, The machine the SQL DB is on has to have an external> IP.>
Matt Babineau> Freelance Internet Developer> e: mbabineau@illuminat­istudios.com > p: 603.943.4237> w: http://www.illumina­tistudios.com>
-----Original Message-----> From: R.S. Herhuth [mailto:ronherhuth@pop.mindspring.com] > Sent: Thursday, April 18, 2002 3:57 PM> To: php-windows@lists.p­hp.net> Subject: [PHP-WIN] Connecting to a remote database>
Newbie alert!>
I am able to connect to a SQL Server Database on my local network by> specifying the host as "testHost" the database is "DB". My question is> if I'm outside the network what is the correct syntax that I need to> call in the host in order to access the database?>
Thanks,> ROn>


--
PHP Windows Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Add comment
Nigel Horne 18 August 2005 15:43:41 permanent link ]
 When I connect to a remote database I get this message:

"An error has occured:

Error connecting to the server: FATAL: Missing or erroneous ph_hba.conf
file, see postmaster log for details."

Naturally I have something wrong, this is NOT a bug report for
that, rather it is a plea (RFE) for a more informative message.

This message falls down in a number of ways:

1) Is it missing or is it erroneous? Why doesn't pgadmin know the
difference?
2) Is the file on the local system or remote system?
3) Where is the ph_hba.conf file?
4) What is erroneous about it?
5) Where is the postmaster log file, on which machine, and what details
am I looking for?
6) Why doesn't this box allow me to view the log file?
7) Last and least: occurred has two 'r's ;-)­

-Nigel Horne


-------------------­--------(end of broadcast)---------­------------------
TIP 5: don't forget to increase your free space map settings

Add comment
Tino Wildenhain 18 August 2005 17:56:41 permanent link ]
 Nigel Horne schrieb:> When I connect to a remote database I get this message:>
"An error has occured:>
Error connecting to the server: FATAL: Missing or erroneous ph_hba.conf> file, see postmaster log for details.">
Naturally I have something wrong, this is NOT a bug report for> that, rather it is a plea (RFE) for a more informative message.>
This message falls down in a number of ways:>
1) Is it missing or is it erroneous? Why doesn't pgadmin know the> difference?

Ah well, the message comes from the server, so guess what
pgadmin can really know about it :-)­
2) Is the file on the local system or remote system?

postmaster is the server. So look there (or ask your DBA)
3) Where is the ph_hba.conf file?

Again, ask your sysadmin of the server. If you set up yourself,
you would have read the documenation, right? ;)) *hint*
4) What is erroneous about it?

It told you to read the logfile on the server to find out :)­
5) Where is the postmaster log file, on which machine, and what details> am I looking for?

See above :-)­
6) Why doesn't this box allow me to view the log file?

Because you cant connect? And there is no fileaccess to joe
average anyway ;)
7) Last and least: occurred has two 'r's ;-)­

Try to mess up your /etc/passwd on a unix box
and then connect via ssh. Compare the messages
you get and what to do :-)­


-------------------­--------(end of broadcast)---------­------------------
TIP 5: don't forget to increase your free space map settings

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > PHP web-programming > Connecting to a remote database 18 August 2005 17:56:41

see also:
error when including a participant in…
What services should be running for…
пройди тесты:
Do you know women?
see also:
Rubber brains
[hello to all]
Hi people!

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .