Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts

    problem with selecting database

    I created a new database in phpmyadmin

    I then changed just the dbname in my connection code to the new db...
    I now don't get any errors but the db isn't opening..

    what could I be doing wrong?

  • #2
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts
    this is even more puzzling....

    in phpadmin the old db (which definately corresponds to the code as I have made changes in the db and they showed on the site) is db1

    new db is db2

    the connection code showed the old db as maindb

    What could be happening here? Is there a default db associated with localhost?

  • #3
    Regular Coder
    Join Date
    Jun 2005
    Posts
    804
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Neither MySQL nor phpmyadmin will rename your db's. If there's a maindb, you or someone else put it there. Please post the code you're using to connect to and query the db.


  •  

    Posting Permissions

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