WordPress.org

Ready to get started?Download WordPress

Forums

cant select database (4 posts)

  1. MavensTable
    Member
    Posted 7 months ago #

    i have racking my brain over here trying to setup my wordpress.org i am coming over from wordpress.com and have installed mamp to get things going, almost at the finish line and this is the error message i received

    "Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Users/Katriel/Sites/Mavens_table/wp-includes/wp-db.php on line 1142
    Can’t select database
    We were able to connect to the database server (which means your username and password is okay) but not able to select the mavens_table database.

    Are you sure it exists?
    Does the user root have permission to use the mavens_table database?
    On some systems the name of your database is prefixed with your username, so it would be like username_mavens_table. Could that be the problem?"

    What did i do wrong?

  2. SKTThemes
    Member
    Posted 7 months ago #

    Check the table prefix. Is it wp_ or something else.

    Keep host and localhost. And db name please check again and confirm from localhost. Because db name in this case seems like a problem.

  3. MavensTable
    Member
    Posted 7 months ago #

    thank you very much for responding skt themes, the db name i selected was from the wordpress file i copy and pasted into the htdocs file on mamp, and to double check i inserted that file into my "sites" folder as well with the same name.

    my apologies as i am rather new to this and learning as i go

  4. jamesvandyke
    Member
    Posted 7 months ago #

    The two error messages are separate issues. The first is due to running PHP 5.5. Right now WordPress core is using a database connection that 5.5 has marked for

    If you're interested in the discussion see this ticket:
    http://core.trac.wordpress.org/ticket/21663

    This was targeted for fixing in WordPress 3.8 but it doesn't look like it made it in the first beta.

    The easiest solution is to use PHP 5.4 until WordPress fixes this.

Reply

You must log in to post.

About this Topic