Jump to content

Help with setting database connection details


Chrisj

Recommended Posts

I have a web site host who provides MYSQL with the hosting package. And I have a script entitled: Member Mgmt Script, to manage users/members who register with my web site. I can set up most features of this script, except I know very little about setting up databases. The Members Mgmt script install instructions simply say: "Set database connection details in db_config.php".

 

Can someone tell me how to "set database connection details in db_config.php"?

 

Here is the db_config.php file, thanks:

 

 

<?php

/**

* file: db_config.php

*

* description: init db connection

*/

 

$db_name = "database name"; // database name

$db_user_name = "database user name"; // database user name

$db_user_password = "database password"; // datanase user password

 

$db_type = "mysql";

// note: for use mysqli lib set db_type = mysqli

 

$host = "localhost";

 

?>

Link to comment
Share on other sites

You are going to first have to create your database and your user name and password with your hosting provider.  Your hosting provider may be able to help you with that.  Your end result will look something like this:

 

<?php
/**
* file: db_config.php
*
* description: init db connection
*/

$db_name = "membermanagement"; // database name
$db_user_name = "ryan3456"; // database user name
$db_user_password = "7?@rtY"; // datanase user password

$db_type = "mysql";
// note: for use mysqli lib set db_type = mysqli

$host = "localhost";

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.