Creating mysql tables
I am currently installing the PHP XP Statistics for WC3 3.0 RC on my website. I got it to connect to the mysql database, but it writes that it needs the tables. I thought it would create them first time it would be opened, but it didn't.
You can see it here: www.reddoom.com/wc3stats So, how do I create the tables manually? I searched at google, and it seems like php is the only way to create tables. Since I am not a master at php, I could not get enough information to create a php script which would create the tables. |
Re: Creating mysql tables
1.2.1 will only work with 3.0 and above
1.2.0 will only work with 2.3.2 and below Judging by the errors, you are either running an outdated version or the wrong version, or you deleted those tables that are created automatically by the latest version of the plugin |
Re: Creating mysql tables
Quote:
Code:
CREATE TABLE IF NOT EXISTS `wc3_player` ( `player_id` int(8) unsigned NOT NULL auto_increment, `player_steamid` varchar(25) NOT NULL default '', `player_ip` varchar(20) NOT NULL default '', `player_name` varchar(35) NOT NULL default '', `time` timestamp(14) NOT NULL, PRIMARY KEY (`player_id`), KEY `player_name` (`player_name`), KEY `player_ip` (`player_ip`), KEY `player_steamid` (`player_steamid`) ) TYPE=MyISAM; |
Re: Creating mysql tables
Quote:
Quote:
|
Re: Creating mysql tables
Correct, the plugin must do the initial connection to the database before the stats will work as the plugin will create the tables and populate them with the default data
|
Re: Creating mysql tables
Oh I did not know that. Well thanks!
|
All times are GMT -4. The time now is 08:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.