So I'm trying to put my site online and don't know what to change in settings.php I'm following instructions from a book that tells me to find line that starts with $db_url and update line to contain the database name, username and password and to do it in this format: mysqli://database_user:database_password@localhost/database_name
Now I've opened the file with Crimson editor and find four lines that start with $db_url
* Database URL format:
* $db_url = 'mysql://username:password@localhost/databasename';
* $db_url = 'mysqli://username:password@localhost/databasename';
* $db_url = 'pgsql://username:password@localhost/databasename';
*/
$db_url = 'mysqli://root@localhost/drupal';
$db_prefix = '';
I really not sure what to change and tried several things but none seem to work my database and user name is cbud27_chris and how to I change this to put my website online? please help
Comments
Anything between /* */ is a
Anything between /* */ is a comment, which means the text between those won't be processed as code. So you would change the one that's after the end comment, */, in the line above $db_prefix.
So your line would be something like
$db_url = 'mysql://cbud27_chris:password@localhost/databasename';
Still can't get it to work
hey i've tried pretty much every combination I can think of and nothing seems to work... say my password is 123456 shouldn't it be
$db_url = 'mysqli://cbud27_chris:123456@localhost/drupal-6.14
i've then uploaded it with filezilla, I've tried many different combinations to and nothing seems to work.
I get this message when i go to my domain address and click on drupal-6.14
The mysqli error was: Access denied for user 'cbud27_chris'@'localhost' (using password: YES)
Finally figured it out
Finally figured it out