wordpress cant connect to database?

Status
Not open for further replies.

brabander1984

New Member
Messages
9
Reaction score
0
Points
0
I want a wordpress site at you (adfree)hosting, i create a database (incl user), put this info in the wp-config.php, so its now:

Code:
<?php
// ** MySQL settings ** //
define('DB_NAME', 'msporck_website');    // The name of the database
define('DB_USER', 'msporck_***********);     // Your MySQL username
define('DB_PASSWORD', '***********'); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!

// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>

(*********** is text, but it isnt smart to place that info here i think;))


Saved this file, uloaded it with ftp and go to "/wp-admin/install.php" file, but there i get this message:

Code:
[B]Can’t select database[/B]

 We were able to connect to the database server (which means your username and password is okay) but not able to select the msporck_website database.

Wat is the problem with it?

I was thinking when i make a databse call "website" after creation i see the database name is "msporck_website" (without the " ofcourse! He put my account name at front of it.)
But i have also try it witout the "msporck_" at front of it and than i get the same error.
I dont asume he do the same with the password? put "msporck_" before my password?

Its strange that he can deside that the usssername and password is good when the database not exisit? isnt it?

If sombody have a sulution, please let me now it asap please.
Edit:
i solve the problem, after creating a (databse) user i need to put the user in the database.
I normaly use plesk as control panel on my curent hosting, and there u creat a database user in the database.

so i dont wath good before posting in the forum, sory people
 
Last edited:
Status
Not open for further replies.
Top