Jump to content
  • 0

FluxCP loading from a seperate MySQL db


Yetsuki

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   7
  • Joined:  04/24/12
  • Last Seen:  

I'm not the best at PHP but is this possible? I think it's a little silly that it's loaded onto *athena's MySQL database by default.. Was wondering if anyone has already done this or could guide me through doing it?

Edited by Yetsuki
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

FluxCP use *athena's database for in-game data only. You can use a different sql server for FluxCP-only tables.

check config/servers.php

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   7
  • Joined:  04/24/12
  • Last Seen:  

sooooo just set what's in servers.php to the database I want FluxCP to install to? and not pointing to my *athena's database?

EDIT: -facepalm- it worked, dunno why I didn't just try that sooner. Thank you sir ^^;

Edited by Yetsuki
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

This part is the fluxcp database

servers.php

 'DbConfig'	   => array(
  //'Socket'	 => '/tmp/mysql.sock',
  //'Port'	   => 3306,
  //'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.
  'Convert'    => 'utf8',
   // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
   // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
  'Hostname'   => '127.0.0.1',
  'Username'   => 'ragnarok',
  'Password'   => 'ragnarok',
  'Database'   => 'ragnarok',
  'Persistent' => true,
  'Timezone'   => null // Example: '+0:00' is UTC.
  // The possible values of 'Timezone' is as documented from the MySQL website:
  // "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."
  // "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)
  // **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."
 ),

Link to comment
Share on other sites

×
×
  • Create New...