Pagina 1 van 1
sql
Geplaatst: 11 jul 2004, 17:53
door marrucc
hallo, ik snap nog niet egt veel van sql invoeren in phpmyadmin, ik heb de tut al wel door gelezen, maar ik snap het niet egt, ik wil de mod sub categorieen installeren, en ik moet bij het begin dit al doen:
Code: Selecteer alles
#
#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_categories ADD cat_main_type CHAR(1);
ALTER TABLE phpbb_categories ADD cat_main MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_categories ADD cat_desc TEXT NOT NULL;
ALTER TABLE phpbb_categories ADD icon VARCHAR(255);
ALTER TABLE phpbb_forums ADD forum_link VARCHAR(255);
ALTER TABLE phpbb_forums ADD forum_link_internal TINYINT(1) NOT NULL;
ALTER TABLE phpbb_forums ADD forum_link_hit_count TINYINT(1) NOT NULL;
ALTER TABLE phpbb_forums ADD forum_link_hit BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE phpbb_forums ADD icon VARCHAR(255);
#
#-----[ SQL ]-------------------------------------------------
#
# the next request is optional. Run it only if you plan to use the real sub-forums feature
#
ALTER TABLE phpbb_forums ADD main_type CHAR(1);
#
#-----[ SQL ]-------------------------------------------------
#
# This part is optional : do it only if you want your users to be able to choose their setup
# if you want so, you'll have to install the MOD-mods_settings mod included in the pack
#
ALTER TABLE phpbb_users ADD user_sub_forum TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_split_cat TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_last_topic_title TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_sub_level_links TINYINT(1) DEFAULT '2' NOT NULL;
ALTER TABLE phpbb_users ADD user_display_viewonline TINYINT(1) DEFAULT '2' NOT NULL;
maar kan iemand mij wat meer info geven wat ik hiero moet doen,
alvast bedankt
Geplaatst: 11 jul 2004, 18:02
door WebPaulsky
Klik op je database naam in phpmyadmin en dan doe je sql en kopieer de eerste tabel en je druk op start en hij staat erin en zo meot je de rest ook doen :thumb:
Geplaatst: 11 jul 2004, 18:09
door marrucc
thnx, maar hij zegt dit:
Database marrucc1_forum wordt uitgevoerd op localhost
Fout
SQL-query :
ALTER TABLE phpbb_categories ADD cat_main_type CHAR( 1 )
MySQL retourneerde:
#1146 - Table 'marrucc1_forum.phpbb_categories' doesn't exist
Geplaatst: 11 jul 2004, 18:28
door WebPaulsky
Dan is er iets verkeerd je moet bij tabel de phpbb doen
Geplaatst: 11 jul 2004, 18:33
door marrucc
hebbik
Geplaatst: 11 jul 2004, 19:09
door Larz
Gebruik je wel phpbb_ als prefix?
(Als je niet weet waar ik het over heb, kijk eens rond in phpMyAdmin of de tabellen beginnen met phpbb_ of met iets anders)
Als je een ander prefix hebt, dan moet je in de code die je invoert phpbb_ vervangen door jouw prefix.
Geplaatst: 11 jul 2004, 20:45
door mosymuis
marrucc schreef:thnx, maar hij zegt dit:
(..)
#1146 - Table 'marrucc1_forum.phpbb_categories' doesn't exist
Je voert hem niet uit in de tabel met je forum erin, of je phpBB prefix is geen phpbb_.
Geplaatst: 12 jul 2004, 08:54
door marrucc
dat klopt moos, ik heb phpbb1_ want phpbb_ was al gebruikt, ik heb phpbb_ al verwijderd, als er special phpbb_ moet dan zal ik het opnieuw installeren
Geplaatst: 12 jul 2004, 09:35
door marrucc
ik heb heel phpmyadmin leeg gemaakt, en installeer ik het en dan komt er te staan dat het al bestaat :S
Geplaatst: 12 jul 2004, 10:54
door WebPaulsky
Dan heb je niet alle tabellen goed verwijdert :thumb:
Geplaatst: 12 jul 2004, 11:07
door marrucc
zoals ik al zei, het is helemaal leeg, en er staat dat er geen tabellen zijn,
Geplaatst: 12 jul 2004, 11:46
door WebPaulsky
Staat er egt helemaal nix meer in ? :thumb:
Geplaatst: 12 jul 2004, 13:29
door marrucc
anders zeg ik het toch niet,
als gij me niet gelooft, bewijs:

Geplaatst: 12 jul 2004, 13:36
door mosymuis
marrucc schreef:dat klopt moos, ik heb phpbb1_ want phpbb_ was al gebruikt, ik heb phpbb_ al verwijderd, als er special phpbb_ moet dan zal ik het opnieuw installeren
Je had alleen de phpbb_ prefix in je query hoeven te wijzigen, zodat het overeenkomt met je forum installatie. Dat het niet meer werkt als je alle tabellen hebt verwijderd (!) is natuurlijk logisch, dan vind hij helemaal niets om de wijzigingen op toe te passen.
Geplaatst: 12 jul 2004, 13:46
door marrucc
srry moos..maar ik snap je niet helemaal, wat moet ik eigenlijk nu doen,
Geplaatst: 12 jul 2004, 13:50
door mosymuis
Nu je je forum hebt verwijderd moet je het om te beginnen weer opnieuw installeren.
Je hád je query moeten aanpassen naar:
Code: Selecteer alles
#
#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb1_categories ADD cat_main_type CHAR(1);
ALTER TABLE phpbb1_categories ADD cat_main MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE phpbb1_categories ADD cat_desc TEXT NOT NULL;
ALTER TABLE phpbb1_categories ADD icon VARCHAR(255);
ALTER TABLE phpbb1_forums ADD forum_link VARCHAR(255);
ALTER TABLE phpbb1_forums ADD forum_link_internal TINYINT(1) NOT NULL;
ALTER TABLE phpbb1_forums ADD forum_link_hit_count TINYINT(1) NOT NULL;
ALTER TABLE phpbb1_forums ADD forum_link_hit BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE phpbb1_forums ADD icon VARCHAR(255);
#
#-----[ SQL ]-------------------------------------------------
#
# the next request is optional. Run it only if you plan to use the real sub-forums feature
#
ALTER TABLE phpbb1_forums ADD main_type CHAR(1);
#
#-----[ SQL ]-------------------------------------------------
#
# This part is optional : do it only if you want your users to be able to choose their setup
# if you want so, you'll have to install the MOD-mods_settings mod included in the pack
#
ALTER TABLE phpbb1_users ADD user_sub_forum TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb1_users ADD user_split_cat TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb1_users ADD user_last_topic_title TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb1_users ADD user_sub_level_links TINYINT(1) DEFAULT '2' NOT NULL;
ALTER TABLE phpbb1_users ADD user_display_viewonline TINYINT(1) DEFAULT '2' NOT NULL;
omdat je prefix phpbb1_ was.
Geplaatst: 12 jul 2004, 14:17
door marrucc
thnx, het is me al weer gelukt met de fout,
Geplaatst: 12 jul 2004, 15:30
door marrucc
wat gebeurt er als ik dit er ook wel bij invoeg:
Code: Selecteer alles
#
#-----[ SQL ]-------------------------------------------------
#
# the next request is optional. Run it only if you plan to use the real sub-forums feature#
#-----[ SQL ]-------------------------------------------------
#
# This part is optional : do it only if you want your users to be able to choose their setup
# if you want so, you'll have to install the MOD-mods_settings mod included in the pack
#
ALTER TABLE phpbb_users ADD user_sub_forum TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_split_cat TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_last_topic_title TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_sub_level_links TINYINT(1) DEFAULT '2' NOT NULL;
ALTER TABLE phpbb_users ADD user_display_viewonline TINYINT(1) DEFAULT '2' NOT NULL;
#
ALTER TABLE phpbb_forums ADD main_type CHAR(1);