Can't Create A Database

Status
Not open for further replies.
Messages
6
Reaction score
0
Points
0
I can't install wordpress! It will not let me add the database information (i.e. username, password, database name, & password). I've put the exact information in the database form and then press the button to accept the info. But, once I push the button it says..."Error establishing a database connection." It shouldn't be this difficult to add wordpress. I need someone's help to solv this asap! Thanks in advance
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
On a manual install you have to create the database and user ahead of time using cPanel --> MySQL Databases , remembering to add the user to the database with ALL PRIVILEGES checked.
 
Messages
6
Reaction score
0
Points
0
I've tried everything. No luck. Don't understand?? It shouldn't be difficult at all. So, I still can't get it to install. Help please!!! Thanks in advance.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. Is it a manual install?
2. Did you create the database and user via cPanel?
 
Messages
6
Reaction score
0
Points
0
I've never had this problem before.

I've tried a manual installation and it just goes to a blank white page. Following exactly wp's instruction in doing so. And yes, I've given ALL permissions from the beginning. I've also used the password created with the database and the main account password. And still no success. Strange! Never happened to me in the last 7 years that I've been installing wordpress and scripts.
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
Have you tried Softaculous or Fantastico for auto installation ?
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
Hey never give up!

Try this (anything.php)
--------------
<?php

echo "Bangbang-";

$a = "localhost"; //srv name
$b = "cpanelusrname_dbusrname"; //cpanelusrname_dbusrname
$c = "xxx"; ////cpanelusrname_dbusrname password
$d = "cpanelusrname_dbname";
$e = "table_name";



$f = mysql_connect ( $a , $b , $c );
if (!$f) {
echo "Auth Fail-";
}
else
{
echo "Auth Pass-";
};


$g = mysql_select_db ( $e , $f );
if (!$g) {
echo "DB Con Fail-";
}
else
{
echo "DB Con Pass-";
};

?>
---------
Post your result
 
Messages
6
Reaction score
0
Points
0
Well, I just came back from a break. And I used the fantastico version. But, when it was finished installing...It still couldn't connect to the database. I checked to see if everything was created properly and it was. I down to my last strand of hair trying to figure out what's wrong with this?
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
It still couldn't connect to the database.

----------
Have you tried the php script ?
 
Status
Not open for further replies.
Top