PDA

View Full Version : config.php MySQL


rowlandc
Mon 29th Jan '07, 6:35am
Hi,

I'm pretty sure you get flooded with this kind of question all the time but I can't seem to find any answer to this question. :)

I just bought a package and I've been having a look at the config.php file. Everything looks fine for the moment expect how does a DATABASE NAME look like.

Do I have to create a database in my phpMyadmin area? or if install a database do I just have a default file.

I still actually created a database to makesure called mysqldata.

When you have the code would it be something down this line:

$config['Database']['dbname'] = 'mysqldata';

or do I have to define it more e.g. www.domain.net/sql/mysqldata (http://www.domain.net/sql/mysqldata)

$config['Database']['dbname'] = 'www.domain.net/sql/mysqldata (http://www.domain.net/sql/mysqldata)';

I'm asking the people which I host the site on but they have a long waiting time to answer the questions, so I'm asking you guys which seem quite friendly.

Thank You

Marco van Herwaarden
Mon 29th Jan '07, 7:21am
If the database you have created is named "mysqldata" then that is what you will need to use in the config.php.

Make sure that you have also created a MySQL user and assigned it to this database with full permissions.

PS Naming it "mysqldata" might not be the best choice, i suggest naming it "forum" or another name that describe it's use.

rowlandc
Mon 29th Jan '07, 8:26am
Thank you