vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What does it mean to edit the database? (https://vborg.vbsupport.ru/showthread.php?t=80547)

saint_seiya 04-25-2005 07:40 PM

What does it mean to edit the database?
 
Ok, Im just a bit confused about a few pieces of information.

Pretty much all of the hacks I have installed came with an install file of some kind.

Im trying to add on to my board and Im running into hacks without the install files that just have install information.

For example, this are the directions for the V3arcadecategories hack:

"Database Modification
=====================
CREATE TABLE `gamescat` (
`categoryID` int(11) NOT NULL auto_increment,
`categorytitle` varchar(100) NOT NULL default '',
`categorydescr` text NOT NULL,
PRIMARY KEY (`categoryID`)
) TYPE=MyISAM COMMENT='v3Arcade Game Categories' AUTO_INCREMENT=1 ;

INSERT INTO `gamescat` VALUES (1, 'General', 'General Games Descr');
INSERT INTO `gamescat` VALUES (2, 'Sports', 'Sports Games Descr');
INSERT INTO `gamescat` VALUES (3, 'Casino', 'Casino Games Descr');
INSERT INTO `gamescat` VALUES (4, 'Shooters', 'Shooters Games Descr');
INSERT INTO `gamescat` VALUES (5, 'Classics', 'Classic Games Descr');
INSERT INTO `gamescat` VALUES (6, 'Action', 'Action Games Descr');
INSERT INTO `gamescat` VALUES (7, 'Puzzle', 'Puzzle Games Descr');
INSERT INTO `gamescat` VALUES (8, 'Skill', 'Skill Games Descr');
INSERT INTO `gamescat` VALUES (9, 'Popular', 'Popular Games Descr');
INSERT INTO `gamescat` VALUES (10, 'Misc', 'Misc Games Descr');

ALTER TABLE `games` ADD `categoryID` INT( 11 ) DEFAULT '1' NOT NULL ;"

Now what exactly is that for, where do I put it and where do I find it?

If its for queries, how do I use the execute queries option in the AdminCP with this?

Im just a bit confused as this is a new are for me.

Marco van Herwaarden 04-25-2005 09:23 PM

Yes these are queries.

Easiest would be to run the from your server panel's phpMyAdmin of you have that.

Otherwise you will have to run each line (a line is ended by a semi-colon ';') through the admincp queriy tool. To be able to use that, you will have to add access for your userid to this tool in the includes/config.php

saint_seiya 04-25-2005 11:50 PM

Thanks, I was given an indepth explanation by another moderator too.


All times are GMT. The time now is 08:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01001 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete