This is the first time that I've had to set up Drupal from scratch. I have edited the settings.php file so that it will connect to my mySQL database. The line I edited was this:
$db_url = 'mysql://[username]:[password]@localhost/[_database name]';
$db_prefix = '';
My problem is that I'm not getting the start page for Drupal. Instead I'm getting this:
Unable to select database
We were able to connect to the MySQL database server (which means your username and password are okay) but not able to select the database.
The MySQL error was: Access denied for user: '[username]@localhost' to database '[_database name]'.
Currently, the database is [database name]. The username is [username] and the database server is localhost.
* 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.
I have created the database, and a user that has all permissions, but when I go to look at the database in phpMyAdmin, there are no tables. All the other databases that I've got have tables in them. I'm thinking this may be part of the problem? If so, how do I get phpMyAdmin to add tables?
Do I need to put in the prefix here: $db_prefix = '';