Results 1 to 11 of 11
  1. #1
    Join Date
    Jun 2003
    Location
    Louisiana
    Posts
    561

    connect to DB in subdomain?

    I created a subdomain account with WHM-http://subdomain.domain.com

    Created a database using PHPMyADMIN

    Installed IPB in root directory of the subdomain

    Getting "cannot find database errors...

    I know the DB name, username and password are correct, using localhost.

    Wy can it not connect to the database? Is there something special I need to do to make DB connections from a subdomain?
    Bayouspace Hosting
    Reliable, Full Featured cPanel Shared Hosting, with REAL 24/7 SUPPORT
    Established 11/2009, WHT member since 2003
    http://www.bayouspace.com

  2. #2
    Join Date
    Nov 2003
    Location
    Orange County, CA
    Posts
    1,182
    Did you make sure you added the user you are trying to connect with to that database?
    DreamHost Web Hosting
    Shared and VPS hosting + dedicated servers and colocation.
    ... and we're green, too!
    Hosting your dreams since 1997.

  3. #3
    Join Date
    Jun 2003
    Location
    Louisiana
    Posts
    561
    yes, all the usual stuff to check is correct. I can see the DB, I even copy/pasted the db name and username from cpanel, but it just cannot find the db.
    Bayouspace Hosting
    Reliable, Full Featured cPanel Shared Hosting, with REAL 24/7 SUPPORT
    Established 11/2009, WHT member since 2003
    http://www.bayouspace.com

  4. #4
    Join Date
    Nov 2003
    Location
    Orange County, CA
    Posts
    1,182
    That is quite odd. I am running ClientExec under a subdomain from cPanel, and it seems to connect to the database just fine.

    Are you running any other databases to where you could check to make sure MySQL is working correctly? If it is, have you tried deleted and recreating the database?
    DreamHost Web Hosting
    Shared and VPS hosting + dedicated servers and colocation.
    ... and we're green, too!
    Hosting your dreams since 1997.

  5. #5
    Join Date
    Jun 2003
    Location
    Louisiana
    Posts
    561
    I tried deleting and recreating, but it didn't help. This is a new subdomain, so there is no other DB to play with. Other sites on the server are having no problems.

    I went into WHM and created new account>subdomain.mymain domain.com. The main domain is up and running fine.
    Bayouspace Hosting
    Reliable, Full Featured cPanel Shared Hosting, with REAL 24/7 SUPPORT
    Established 11/2009, WHT member since 2003
    http://www.bayouspace.com

  6. #6
    Join Date
    Jun 2003
    Location
    Louisiana
    Posts
    561
    Oh lord...nevermind. I made a simple mindless mistake, problem solved.

    I have been up way too long...
    Bayouspace Hosting
    Reliable, Full Featured cPanel Shared Hosting, with REAL 24/7 SUPPORT
    Established 11/2009, WHT member since 2003
    http://www.bayouspace.com

  7. #7
    Join Date
    Nov 2003
    Location
    Orange County, CA
    Posts
    1,182
    I am pretty much out of ideas for tonight. It has been a long day. I am sorry that I could not solve the problem for you. I did try to reproduce it, actually, and did not encounter the same error. Without being able to tinker in WHM for you, I can not provide a solution.

    Hopefully someone else will be able to step in and tell you how to fix it.

    Anyone?

    Good luck!
    DreamHost Web Hosting
    Shared and VPS hosting + dedicated servers and colocation.
    ... and we're green, too!
    Hosting your dreams since 1997.

  8. #8
    Join Date
    Nov 2003
    Location
    Orange County, CA
    Posts
    1,182
    What was the problem?
    DreamHost Web Hosting
    Shared and VPS hosting + dedicated servers and colocation.
    ... and we're green, too!
    Hosting your dreams since 1997.

  9. #9
    Join Date
    Jun 2003
    Location
    Louisiana
    Posts
    561
    Don't ask, I would be shunned from WHT and called a noob until my 10,000th post.
    Bayouspace Hosting
    Reliable, Full Featured cPanel Shared Hosting, with REAL 24/7 SUPPORT
    Established 11/2009, WHT member since 2003
    http://www.bayouspace.com

  10. #10
    Join Date
    Nov 2003
    Location
    Orange County, CA
    Posts
    1,182
    Haha. 10-4.

    Looks like this thread turned in to our own little chat session. We probably should have taken it to PM's or something similar. Oops, heh.

    Sorry everyone! :-\
    DreamHost Web Hosting
    Shared and VPS hosting + dedicated servers and colocation.
    ... and we're green, too!
    Hosting your dreams since 1997.

  11. #11
    Join Date
    Jul 2003
    Location
    Goleta, CA
    Posts
    5,550
    Meh it was slightly informative. No harm done, at least it was better than your typical one post wonders we get.
    Patron: I'd like my free lunch please.
    Cafe Manager: Free lunch? Did you read the fine print stating it was an April Fool's joke.
    Patron: I read the same way I listen, I ignore the parts I don't agree with. I'm suing you for false advertising.
    Cafe Owner: Is our lawyer still working pro bono?

Posting Permissions

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