Need help with config.php!

Status
Not open for further replies.

thehave3

Member
Messages
41
Reaction score
0
Points
6
Hello there I have recently purchased Vbulletin & I plan on uploading it to my forum now in config.php I have to manually enter in the MYSQL info & I have come across this part which I need help with setting.

Code:
  //  ****** MASTER DATABASE SERVER NAME AND PORT ******
  //  This is the hostname or IP address and port of the database server.
  //  If you are unsure of what to put here, leave the default values.
  //
  //  Note: If you are using IIS 7+ and MySQL is on the same machine, you
  //  need to use 127.0.0.1 instead of localhost
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

  //  ****** MASTER DATABASE USERNAME & PASSWORD ******
  //  This is the username and password you use to access MySQL.
  //  These must be obtained through your webhost.
$config['MasterServer']['username'] = 'root';
$config['MasterServer']['password'] = '';


Hope someone here can help me out with this!
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi thehave3,

You will need to create a MySQL database and user in cPanel, and then enter the details in your configuration file. For more information, please see this wiki article. :)

Thank you,
 

thehave3

Member
Messages
41
Reaction score
0
Points
6
I have already done that but to access the Master Server isn't that something x10 has to provide because there is a different section which states the database login info
Code:
  //  ****** SLAVE DATABASE CONFIGURATION ******
  //  If you have multiple database backends, this is the information for your slave
  //  server. If you are not 100% sure you need to fill in this information,
  //  do not change any of the values here.
$config['SlaveServer']['servername'] = '';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = 'THE USERNAME TO MY DB';
$config['SlaveServer']['password'] = 'THEPASSWORDIMADE';
$config['SlaveServer']['usepconnect'] = 0;
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi thehave3,

I haven't used vBulletin, but the comments in the sections you have provided suggest the "master" details should contain your database details, and "slave" should be left as is.

Thank you,
 

thehave3

Member
Messages
41
Reaction score
0
Points
6
Are you certain? I thought the slave would be my DB since it says in the comments
Code:
If you have multiple database backends, this is the information for your slave server.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi thehave3,

You only have a single database backend, not multiple, so that should not apply. :)

Thank you,
 

thehave3

Member
Messages
41
Reaction score
0
Points
6
Okay,
Now for this part
Code:
  //  Note: If you are using IIS 7+ and MySQL is on the same machine, you
  //  need to use 127.0.0.1 instead of localhost
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;


Do I put the Servername as my DB name or do I leave it as localhost & the port do I leave that alone or change it as well?
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Those details are fine. The host should stay as "localhost", and the port is 3306. :)

Thank you,
 
Status
Not open for further replies.
Top