• Resolved kango

    (@kango)


    I downloaded wordpress and uploaded it to my website.

    Now I get this message.
    “We were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database.

    Are you sure it exists?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?”

    I know the problem is the database.
    I’m using phpMyAdmin 2.5.7-pl1.

    I don’t know how to create a database called wordpress.
    Well okey, I can create a database called wordpress, but I don’t know what to put in there. So I can’t save an empty database called wordpress.

    I found this script.

    “<?php

    // set your infomation.
    $dbhost=’localhost’;
    $dbusername=’USER’;
    $dbuserpass=’PASSWORD’;
    $dbname=’wordpress’;

    // connect to the mysql database server.
    $link_id = mysql_connect ($dbhost, $dbusername, $dbuserpass);
    echo “success in database connection.”;

    // create the database.
    $dbname=$dbname;
    if (!mysql_query(“CREATE DATABASE $dbname”)) die(mysql_error());
    echo “success in database creation.”;

    ?>”

    But I get this message.
    “success in database connection.Access denied for user: ‘gamaco_se@localhost’ to database ‘wordpress'”

    Some one help me please!

Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Creating database’ is closed to new replies.