I'm trying to install drupal but I'm running into trouble. I copied the drupal folder into http_public and I setup my database.
When I am running the setup, I get this error,
We were able to connect to the MySQL database server (which means your username and password are valid) but not able to select your database. MySQL reports the following message: .
* Are you sure you have the correct database name?
* Are you sure the database exists?
* Are you sure the username has permission to access the database?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
My database is darkape_a
my username will full privileges is darkape_admin
I created my database using MySQL Account Maintenance in cPanel X. I also have phpmyadmin installed but it has some Privileges issues.
Comments
Aslo I get this error on top
Aslo I get this error on top of the same page.
Warning: mysqli_error() [function.mysqli-error]: invalid object or resource mysqli in /home/darkape/public_html/drupal/drupal-6.x-dev/includes/install.mysqli.inc on line 45
Warning: Cannot modify header information - headers already sent by (output started at /home/darkape/public_html/drupal/drupal-6.x-dev/includes/install.mysqli.inc:45) in /home/darkape/public_html/drupal/drupal-6.x-dev/includes/common.inc on line 141
hello try this one
i suspect that your culprit is the /home/darkape/public_html/drupal/drupal-6.x-dev/sites/default/settings.php file
you ought to edit it to conform to your site config, below are two impt lines in that file:
** line 87 - # $db_url = 'mysql://username:password@localhost/databasename';
** line 109 - # $base_url = 'http://www.example.com'; // NO trailing slash!
uncomment them by removing the # & edit to your site settings
commented explanations are above each line for your easy understanding
pls note my drupal install is 5.x so might be different than yours --- cheers
Thanks but it didnt work.
Thanks but it didnt work. Here is what I typed in (different info though) The entries were on different lines and the file was called default.settings.php.
$db_url = 'mysql://admin:adminlol1@localhost/darkape_a';
$base_url = 'http://www.sitename.com'; // NO trailing slash!
other things to consider
i really think this issue revolves around database connection and/or authentication, beg your pardon but verify your settings again
- is the database on the same host as the webserver?
- if you are on hosting, usernames/passwords for account admin & database oftentimes are different