Results 1 to 4 of 4

Thread: Database conection

  1. #1
    historiasdelavida is offline Junior Member
    Join Date
    May 2013
    Posts
    2

    Question Database conection

    Hi,

    I am trying to access my database with a php page but I need the host/server name, which in my "Database credentials" says is "localhost". What is the real host/server name?

    thanks

  2. #2
    Gianluca is offline Administrator
    Join Date
    Feb 2010
    Posts
    512

    Default

    You can even leave blank that field, otherwise localhost is ok

  3. #3
    historiasdelavida is offline Junior Member
    Join Date
    May 2013
    Posts
    2

    Default

    I am creating a php page to conect to my database and the command for the host can not be "localhost" because the it thinks it is my computer

  4. #4
    saitfainder's Avatar
    saitfainder is offline AlterVista Staff
    Join Date
    Feb 2010
    Posts
    300

    Default

    If your script is running on a Altervista server then "localhost" is that server.

    If you're trying to connect to your database from a script running on your PC, well, that's not possible because the server will reject the connection.
    "Over thinking, over analyzing separates the body from the mind."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO