database legen
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

database legen
ik heb een vraagje hoe zou ik mijn database moeten leggen. ik zie die optie niet staan het admin menu en heb al geprobeerd de complete map /forum/ te verwijderen war prima ging maar als ik opnieuw phpbb wil installeren krijg ik een error en op dit forum staat dat ik bij die error me database moet legen maar ik zou niet weten hoe
Ga naar phpMyAdmin, open het tabblad "SQL" en voer de volgende code uit:
pas op: hiermee verwijder je dus permanent alle tabellen van phpBB, wat niet meer teruggedraaid kan worden. 
Code: Selecteer alles
DROP TABLE phpbb_auth_access, phpbb_banlist, phpbb_categories, phpbb_config, phpbb_confirm, phpbb_disallow, phpbb_forum_prune, phpbb_forums, phpbb_groups, phpbb_posts, phpbb_posts_text, phpbb_privmsgs, phpbb_privmsgs_text, phpbb_ranks, phpbb_search_results, phpbb_search_wordlist, phpbb_search_wordmatch, phpbb_sessions, phpbb_smilies, phpbb_themes, phpbb_themes_name, phpbb_topics, phpbb_topics_watch, phpbb_user_group, phpbb_users, phpbb_vote_desc, phpbb_vote_results, phpbb_vote_voters, phpbb_words;

Code: Selecteer alles
<?php
/***************************************************************************
* db_update.php
* -------------------
*
* copyright : ©2003 Freakin' Booty ;-P & Antony Bailey
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
exit;
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}
$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';
$sql = array();
$sql[] = "DROP TABLE " . $table_prefix . "auth_access, " . $table_prefix . "banlist, " . $table_prefix . "categories, " . $table_prefix . "config, " . $table_prefix . "confirm, " . $table_prefix . "disallow, " . $table_prefix . "forum_prune, " . $table_prefix . "forums, " . $table_prefix . "groups, " . $table_prefix . "posts, " . $table_prefix . "posts_text, " . $table_prefix . "privmsgs, " . $table_prefix . "privmsgs_text, " . $table_prefix . "ranks, " . $table_prefix . "search_results, " . $table_prefix . "search_wordlist, " . $table_prefix . "search_wordmatch, " . $table_prefix . "sessions, " . $table_prefix . "smilies, " . $table_prefix . "themes, " . $table_prefix . "themes_name, " . $table_prefix . "topics, " . $table_prefix . "topics_watch, " . $table_prefix . "user_group, " . $table_prefix . "users, " . $table_prefix . "vote_desc, " . $table_prefix . "vote_results, " . $table_prefix . "vote_voters, " . $table_prefix . "words";
for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
}
}
echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>';
echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
oke ik heb het gedaan geupload succesvol uitgevoerd en weer verwijderd
daarna heb ik het complete phpbb installatie pakket geupload en install.php opnieuw uitgevoerd maar ik krijg nog steeds de error
( An error has occurred during installation
An error occurred trying to update the database
Table 'phpbb_auth_access' already exists )
heb ik nog steeds iets fout gedaan?
daarna heb ik het complete phpbb installatie pakket geupload en install.php opnieuw uitgevoerd maar ik krijg nog steeds de error
( An error has occurred during installation
An error occurred trying to update the database
Table 'phpbb_auth_access' already exists )
heb ik nog steeds iets fout gedaan?
- WebSiteNet
- Berichten: 6524
- Lid geworden op: 20 okt 2003, 16:56
- Locatie: Wieringerwerf
- Contacteer:
- WebSiteNet
- Berichten: 6524
- Lid geworden op: 20 okt 2003, 16:56
- Locatie: Wieringerwerf
- Contacteer: