SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: mysql problem

  1. #1
    SitePoint Member
    Join Date
    Apr 2002
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysql problem

    I am facing a unique problem.I have created a website
    with mysql database.When I open a website with www.sitename.com then everything is running properly.But when I open that website without www i.e sitename.com then it shows mysql connection problem and following mesage

    Warning: Access denied for user: '********@localhost.localdomain' (Using password: YES) in /home/bigway/public_html/home/include/banners/local.inc on line 16

    Warning: MySQL Connection Failed: Access denied for user: 'bigway_bigway@localhost.localdomain' (Using password: YES) in /home/bigway/public_html/home/include/banners/local.inc on line 16

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/bigway/public_html/home/include/banners/local.inc on line 17
    Cant Select data base

    Can any body tell me about the problem and solution.

    Thank you

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    At a guess you must have something in your connection string to mysql that is dependent on one of the server variables like HTTP_HOST that will change based on using the www. or not.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  3. #3
    SitePoint Member
    Join Date
    Apr 2002
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mr. karl can you tell me howw can I solve this problem .

  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can if you post the connection routine you are using for mysql (obviously you can star out your password as you really don't want people to see that).
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.


Bookmarks

Posting Permissions

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