Loading ...
Sorry, an error occurred while loading the content.
 

Re: [bang-phpug] Can not connect to mysql database

Expand Messages
  • Vijay Srinivas
    You need to provide the user id (usually the localhost), login id and password. This could speed-up the connection. Then, in mysql_select_db, you need to
    Message 1 of 7 , Jul 8, 2008
      You need to provide the user id (usually the localhost), login id and password. This could speed-up the connection. Then, in mysql_select_db, you need to mention the database name.
       
      Vijay Srinivas

      --- On Sat, 7/5/08, menon premja <premjamenon@...> wrote:

      From: menon premja <premjamenon@...>
      Subject: [bang-phpug] Can not connect to mysql database
      To: bang-phpug@yahoogroups.com
      Date: Saturday, July 5, 2008, 1:44 PM






      hi,
      i am beginner in PHP. just installed PHP and MySql. I tried to connect to the database using mysql_connect. but when i run this file i am getting 'page can not be displayed'.
      I am able to display a php page with out database connection details. Also I am able to connect to MYSql from command prompt,
      please help me
       -premja

      Forgot the famous last words? Access your message archive online at http://in.messenger .yahoo.com/ webmessengerprom o.php

      [Non-text portions of this message have been removed]


















      [Non-text portions of this message have been removed]
    • Roshith Kaniyamchalil
      Hi, Use the sample code given in this   http://in2.php.net/manual/en/function.mysql-connect.php   Regards, Roshith Kaniyamchalil   ... From: Vijay Srinivas
      Message 2 of 7 , Jul 9, 2008
        Hi,

        Use the sample code given in this
         
        http://in2.php.net/manual/en/function.mysql-connect.php
         
        Regards,
        Roshith Kaniyamchalil
         

        --- On Wed, 9/7/08, Vijay Srinivas <vijay_srini_2000@...> wrote:

        From: Vijay Srinivas <vijay_srini_2000@...>
        Subject: Re: [bang-phpug] Can not connect to mysql database
        To: bang-phpug@yahoogroups.com
        Date: Wednesday, 9 July, 2008, 12:20 AM






        You need to provide the user id (usually the localhost), login id and password. This could speed-up the connection. Then, in mysql_select_ db, you need to mention the database name.
         
        Vijay Srinivas

        --- On Sat, 7/5/08, menon premja <premjamenon@ yahoo.com> wrote:

        From: menon premja <premjamenon@ yahoo.com>
        Subject: [bang-phpug] Can not connect to mysql database
        To: bang-phpug@yahoogro ups.com
        Date: Saturday, July 5, 2008, 1:44 PM

        hi,
        i am beginner in PHP. just installed PHP and MySql. I tried to connect to the database using mysql_connect. but when i run this file i am getting 'page can not be displayed'.
        I am able to display a php page with out database connection details. Also I am able to connect to MYSql from command prompt,
        please help me
         -premja

        Forgot the famous last words? Access your message archive online at http://in.messenger .yahoo.com/ webmessengerprom o.php

        [Non-text portions of this message have been removed]

        [Non-text portions of this message have been removed]
















        Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/

        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.