Skip to content

Commit f3681f1

Browse files
committed
Initial Setup Guide change
To include importing comments from Sunskat
1 parent ca70ad6 commit f3681f1

File tree

2 files changed

+33
-15
lines changed

2 files changed

+33
-15
lines changed

Initital-Setup-guide.txt

+22-4
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@
7979
wget https://raw.githubusercontent.com/brotalnia/database/master/world_full_08_june_2018.7z
8080
7z x ./world_full_08_june_2018.7z
8181

82-
# Create the aowow and realmd databases
82+
# Create the aowow and realmd databases and create your database user
8383
mysql -u root -p
8484
type the following:
8585
create database aowow;
8686
create database realmd;
87+
GRANT ALL PRIVILEGES ON aowow.* TO '<YOURUSERNAME>'@'localhost' IDENTIFIED BY '<YOURPASSWORD>';
88+
GRANT ALL PRIVILEGES ON realmd.* TO '<YOURUSERNAME>'@'localhost' IDENTIFIED BY '<YOURPASSWORD>';
8789
exit
88-
90+
8991
# Import the world DB contents into the aowow database in mysql
9092
mysql -u root -p aowow < world_full_08_june_2018.sql
9193

@@ -100,10 +102,26 @@
100102
cd /var/www/html/VanillaWoWDB2/tools/sql/realmd
101103
mysql -u root -p realmd < realmd.sql
102104

103-
# Configure your site via making a new
105+
# Configure your site via making a new config file.
104106
cd /var/www/html/VanillaWoWDB2/configs/
105107
cp ./config.php.in ./config.php
106108
nano ./config.php
107109
Make your desired changes to the config (Patch version, site name. Use the mysql database credentials you set in the steps above.)
108110

109-
# -=-=-=-=-=-=-=-=-=- xxx -=-=-=-=-=-=-=-=-=-
111+
# -=-=-=-=-=-=-=-=-=- Importing Aowow comments -=-=-=-=-=-=-=-=-=-
112+
113+
# If you want to import comments from Aowow, you can find them here: https://github.com/Sunksat/aowow_comments
114+
cd ~/
115+
git clone https://github.com/Sunksat/aowow_comments
116+
117+
# You'll need to modify the accounts SQL files to fit the realmd we are using. You can do this with a find/replace via sed
118+
find ./aowow_comments/ -type f -exec sed -i -e "s/'changepass1234', '0', null, null, null, '', '', null, '2004-11-23 21:10:00', '0.0.0.0', '127.0.0.1', '127.0.0.1', '0', '0', '00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0', '0', '0', '', '', '0', '', '0', '0', '0', '0', '', '0', null, null, '0', null, null, '0', null, null)/'REPLACEWITHGIBBERISH',0,NULL,NULL,NULL,NULL,'2004-11-23 21:10:00','0.0.0.0',0,0,'0000-00-00 00:00:00',0,0,0,0,NULL,0)/i" {} \;
119+
120+
# You will need to import each type separately by cd ing into their directories and running the following. Repeat this process per type
121+
# Import comments and ratings into the aowow database
122+
mysql -u root -p aowow < ./htmlfix/aowow_comments_TYPE_comments_sql_FINAL.sql
123+
mysql -u root -p aowow < ./aowow_comments_TYPE_ratings_sql_FINAL.sql
124+
125+
# Import the accounts who made these comments into the realmd database
126+
mysql -u root -p realmd < ./aowow_comments_TYPE_accounts_sql_FINAL.sql
127+

tools/sql/realmd/realmd.sql

+11-11
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,26 @@ CREATE TABLE `account` (
6767
`mutetime` bigint(40) unsigned NOT NULL DEFAULT '0',
6868
`locale` tinyint(3) unsigned NOT NULL DEFAULT '0',
6969
`os` varchar(3) DEFAULT '' COMMENT 'Client OS Version',
70-
`playerBot` bit(1) NOT NULL DEFAULT b'0' COMMENT 'Whether the account is a playerbot account',
70+
`playerbot` tinyint(3) NOT NULL DEFAULT '0',
7171
PRIMARY KEY (`id`),
72-
UNIQUE KEY `idx_username` (`username`),
72+
UNIQUE KEY `id_UNIQUE` (`id`),
7373
KEY `idx_gmlevel` (`gmlevel`)
74-
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Account System';
74+
) ENGINE=MyISAM AUTO_INCREMENT=2524372 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Account System';
7575
/*!40101 SET character_set_client = @saved_cs_client */;
7676

7777
--
7878
-- Dumping data for table `account`
7979
--
8080

81-
LOCK TABLES `account` WRITE;
82-
/*!40000 ALTER TABLE `account` DISABLE KEYS */;
83-
insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (1,'ADMINISTRATOR','a34b29541b87b7e4823683ce6c7bf6ae68beaaac',3,'','0','0','','2006-04-25 13:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
84-
insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (2,'GAMEMASTER','7841e21831d7c6bc0b57fbe7151eb82bd65ea1f9',2,'','0','0','','2006-04-25 13:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
85-
insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (3,'MODERATOR','a7f5fbff0b4eec2d6b6e78e38e8312e64d700008',1,'','0','0','','2006-04-25 13:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
86-
insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (4,'PLAYER','3ce8a96d17c5ae88a30681024e86279f1a38c041',0,'','0','0','','2006-04-25 13:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
81+
-- LOCK TABLES `account` WRITE;
82+
-- /*!40000 ALTER TABLE `account` DISABLE KEYS */;
83+
-- insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (1,'ADMINISTRATOR','a34b29541b87b7e4823683ce6c7bf6ae68beaaac',3,'','0','0','','2006-04-25 13:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
84+
-- insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (2,'GAMEMASTER','7841e21831d7c6bc0b57fbe7151eb82bd65ea1f9',2,'','0','0','','2006-04-25 13:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
85+
-- insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (3,'MODERATOR','a7f5fbff0b4eec2d6b6e78e38e8312e64d700008',1,'','0','0','','2006-04-25 13:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
86+
-- insert into `account`(`id`,`username`,`sha_pass_hash`,`gmlevel`,`sessionkey`,`v`,`s`,`email`,`joindate`,`last_ip`,`failed_logins`,`locked`,`last_login`,`active_realm_id`,`expansion`,`mutetime`,`locale`,`os`,`playerBot`) values (4,'PLAYER','3ce8a96d17c5ae88a30681024e86279f1a38c041',0,'','0','0','','2006-04-25 13:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0,'','\0');
8787

88-
/*!40000 ALTER TABLE `account` ENABLE KEYS */;
89-
UNLOCK TABLES;
88+
-- /*!40000 ALTER TABLE `account` ENABLE KEYS */;
89+
-- UNLOCK TABLES;
9090
--
9191
-- Table structure for table `account_banned`
9292
--

0 commit comments

Comments
 (0)