+ Reply to Thread
Results 1 to 7 of 7

Thread: Test DB Connectivity

  1. Join Date
    Jun 2006
    Posts
    4

    Test DB Connectivity

    I am testing the Forum News script on a hosted server running mysql 4 and php 4.

    After configuration and creating a test page I am getting the following error:
    "Error connecting to mysql database with username and password specified."

    I know my hosting company uses a non standard mysql tcp port. The account I am using works with phpmyadmin. Is there a connection string I can run to test DB connectivity. Any trouble shooting tips would be appreciated


  2. Join Date
    Aug 2004
    Posts
    781

    Re: Test DB Connectivity

    To use a non-standard port just include it in on the host.

    For example, localhost:3307 would attempt to connect to localhost on port 3307 (instead of default 3306).

    Depending on your website host, you may also have mysql on another server, such as otherserver.com:3307 (again assuming non-standard port such as 3307 and otherserver.com instead of localhost).

  3. Join Date
    Jun 2006
    Posts
    4

    Re: Test DB Connectivity

    Thanks for the quick response. I have to admit I just made a mistake. I had my mind on mssql thinking port 1433. The hosting company is using 3306. If you have some trouble shooting techniques to pass on, I will appreciate that.

    thanks again

  4. Join Date
    Aug 2004
    Posts
    781

    Re: Test DB Connectivity

    Quote Originally Posted by gbud
    Thanks for the quick response. I have to admit I just made a mistake. I had my mind on mssql thinking port 1433. The hosting company is using 3306. If you have some trouble shooting techniques to pass on, I will appreciate that.

    thanks again
    Wait... so does it work now or not?

  5. Join Date
    Jun 2006
    Posts
    4

    Re: Test DB Connectivity

    Thanks again for the response. No it is not currently working. I am going to try and add a new dba account for the phpbb db and see if that helps. the account I am using originally had rw access. Later I added the rest of the permissions. I am going to scrap the account for the new dba and see if that helps. I'll check to see if my hosting company will allow me to see the db logs to try to see what is going on.

    Thanks for your work and willingness to support it

  6. Join Date
    Jun 2006
    Posts
    4

    Re: Test DB Connectivity

    creating an account with what the hosting company calls "dba" access did the trick. On the old account I gave it all the permissions I could give it. So my next question is what access is required for a db account to work with the news-forum?

    Its working for now, I hope to get an account with least privelege access.

    thanks

  7. Join Date
    Aug 2004
    Posts
    781

    Re: Test DB Connectivity

    The script doesn't modify the database in any way. You just need to give it read access to the database (give it the ability to SELECT).

+ Reply to Thread

Posting Permissions

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