PDA

View Full Version : Database installation



twine
05-06-2010, 03:41 AM
For some reason my host won't allow me to create a database called Hotaru. What lines, in what files do I have to change if I change the name of the database to Hotaru_A
I should add that as I go through the set up process it won't connect to my database. Sorry I'm a newbie with PHP.

Nick
05-06-2010, 06:28 AM
Sorry, the instructions are misleading. You can call your database anything so long as you put that name in your hotaru_settings file:


define("DB_NAME", 'database_name');

shibuya246
05-06-2010, 10:36 AM
For some reason my host won't allow me to create a database called Hotaru. What lines, in what files do I have to change if I change the name of the database to Hotaru_A
I should add that as I go through the set up process it won't connect to my database. Sorry I'm a newbie with PHP.

normally hosts will set it up so that your account name is in the db wording. e.g. if your accountname is myname then the db might be called myname_hotaru

then you need to enter myname_hotaru in the hotaru_settings file as Nick suggested

louis
05-06-2010, 12:30 PM
For some reason my host won't allow me to create a database called Hotaru. What lines, in what files do I have to change if I change the name of the database to Hotaru_A
I should add that as I go through the set up process it won't connect to my database. Sorry I'm a newbie with PHP.

Hello twine, did you create the database "first" on your host (maybe via Cpanel) and created a database user with permissions to the newly created database? As shibuya246 mentioned you need to add the info to the hotaru_settings.php like so e.g.

// Database details
define("DB_USER", 'myname_DBusername'); // Add your own database details
define("DB_PASSWORD", 'myname_DBpassword');
define("DB_NAME", 'myname_hotaru');
define("DB_HOST", 'localhost');