Author Topic: I need help with setting up a LAN server using OA base.  (Read 84 times)

0 Members and 1 Guest are viewing this topic.

Offline Roach :3

  • ****
  • Windows UserLinux UserApple User
    View More Badges!

  • Posts: 333
  • Gender: Male
  • Kids on drugs are really fun
  • Respect: +68
I need help with setting up a LAN server using OA base.
« on: March 23, 2012, 12:41:58 PM »
0
Basically, I suck at MYSQL and I need some help.

Code: [Select]
// This is the MySQL configuration file for the OpenAura framework.
// Simply edit the values below and stick to the format of the example.
[MySQL]
force mysql_characters_table = 100;
force mysql_players_table = 100;
force mysql_username = example;
force mysql_password = example;
force mysql_database = example;
force mysql_host = example.com;
Code: [Select]
CREATE TABLE IF NOT EXISTS `characters` (
  `_Key` smallint(11) unsigned NOT NULL AUTO_INCREMENT,
  `_Data` text NOT NULL,
  `_Name` varchar(150) NOT NULL,
  `_Ammo` text NOT NULL,
  `_Cash` varchar(150) NOT NULL,
  `_Model` varchar(250) NOT NULL,
  `_Flags` text NOT NULL,
  `_Schema` text NOT NULL,
  `_Gender` varchar(50) NOT NULL,
  `_Faction` varchar(50) NOT NULL,
  `_SteamID` varchar(60) NOT NULL,
  `_SteamName` varchar(150) NOT NULL,
  `_Inventory` text NOT NULL,
  `_OnNextLoad` text NOT NULL,
  `_Attributes` text NOT NULL,
  `_LastPlayed` varchar(50) NOT NULL,
  `_TimeCreated` varchar(50) NOT NULL,
  `_CharacterID` varchar(50) NOT NULL,
  `_RecognisedNames` text NOT NULL,
  PRIMARY KEY (`_Key`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `players` (
  `_Key` smallint(11) unsigned NOT NULL AUTO_INCREMENT,
  `_Data` text NOT NULL,
  `_Schema` text NOT NULL,
  `_SteamID` varchar(60) NOT NULL,
  `_Donations` text NOT NULL,
  `_UserGroup` text NOT NULL,
  `_IPAddress` varchar(50) NOT NULL,
  `_SteamName` varchar(150) NOT NULL,
  `_OnNextPlay` text NOT NULL,
  `_LastPlayed` varchar(50) NOT NULL,
  `_TimeJoined` varchar(50) NOT NULL,
  PRIMARY KEY (`_Key`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

...What the heck do I do?

By the way, this is a simple server for some weapon/item testing nothing special.

Offline coolzeldad

  • ******
  • OwnerDonatorOld Forum MemberrNd DeveloperLinux UserWindows UserDog LoverLeague PlayerDWO Player
    View More Badges!

  • Posts: 3333
  • I eat ddos for breakfast OMNOMONOM
  • Respect: +2711
    • .:`=-~rANdOm~`-=:. Game Servers
Re: I need help with setting up a LAN server using OA base.
« Reply #1 on: March 25, 2012, 04:46:24 PM »
+1
Not sure what oa base is but I'll try to give you a lead.

Install mysql.

Run setup script, most default values should be the safest to use in production if i remember correctly.. be sure though and check the options carefully.

Setup another mysql user with username, pass, and ip/hostname to where the machine that user will login from.

Login to mysql as root and create a new database. Execute those queries (in your second code block), it should create two tables: characters and players, within the new database.

As root assign your user that you created permissions for the database or individual tables (not sure which ones.. probably want to refer to whatever documentation that came with, can try select, insert, update.. don't recommend all permissions..)

Now go to your config file (first codeblock) and set the correct username, password, database name, and location of the mysql server.

The MySQL documentation has some really helpful examples for doing this, or you can try a GUI tool like sqlyog (community edition is free) http://code.google.com/p/sqlyog/

Good luck!
 ▲
▲▲Big thanks to Marie for this awesome sprite! :3

Spoiler: Moar Imagez (click to show/hide)
pingaz
Thanks Cryptokid!

Thanks gamefreak!


-- My youtube: http://www.youtube.com/coolzeldad
-- My deviantart: http://coolzeldad.deviantart.com
-- My soundcloud: http://www.soundcloud.com/coolzeldad
-- My ustream: http://www.ustream.tv/channel/coolzeldapingaz
-- My twitchtv: http://www.twitch.tv/coolzeldad

-- rNd Wiki: http://wiki.randomgs.com
-- rNd Youtube: http://www.youtube.com/RandomgsProductions
-- rNd Steam Group: http://steamcommunity.com/groups/r_A_N_d_O_m

Spoiler: rNd Typography (click to show/hide)





Every time you download Garry's Mod illegally, Garry makes a bug.

When people ask me "Plz" because its shorter than "Please" I feel perfectly justified to answer "No" because its shorter than "Yes".

derp herp lerp perp kerp serp zerp - say faiv timez fazt