SQL...?

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
snoopy
Berichten: 23
Lid geworden op: 23 jun 2004, 19:36

SQL...?

Bericht door snoopy » 11 aug 2004, 13:43

Oeps... sorry dat ik zo dom ben....
Ik weet even niet wat ik hiermee moet:

phpBB : Critical Error

Could not query profile field required status

DEBUG MODE

SQL Error : 1146 Table 'tweede.phpbb_profile_config' doesn't exist

SELECT * FROM phpbb_profile_config

Line : 32
File : /home/httpd/vhosts/shirin.nl/httpdocs/admin/admin_profile_field.php



Vast iets met de SQL... Maar hoe doe ik dat?

Dit staat in de 'install' wat ik niet begrijp:

Code: Selecteer alles

#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
CREATE TABLE `phpbb_profile_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`)
) TYPE=MyISAM;

# 
#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');

Gebruikersavatar
desert spider
Berichten: 1101
Lid geworden op: 08 feb 2004, 18:51

Bericht door desert spider » 11 aug 2004, 13:51

heel simpel
'tweede.phpbb_profile_config' bestaat niet en die moet er toch echt zijn
ik denk dat je de prefix vergeten te veranderen bent dus dat er nu een table bestaat genaamt 'phpbb_profile_config' in plaats van 'tweede.phpbb_profile_config'

dit moet de goede zijn

Code: Selecteer alles

#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
CREATE TABLE `tweede.phpbb_profile_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`)
) TYPE=MyISAM;

# 
#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_interests', '0');

snoopy
Berichten: 23
Lid geworden op: 23 jun 2004, 19:36

Bericht door snoopy » 11 aug 2004, 13:54

heel erg bedankt.
het spijt me, maar dit is nog een stap te hoog voor mij geloof ik :oops: (sql is echt nieuw voor me). kun je me s.v.p. vertellen wat ik moet doen?

Gebruikersavatar
desert spider
Berichten: 1101
Lid geworden op: 08 feb 2004, 18:51

Bericht door desert spider » 11 aug 2004, 13:56

dat moet je in je phpmyadmin voegen
phpmyadmin is een script waarmee je je database kan bekijken en sql kan invoegen zo als he bovenstaande
ik weet alleen niet waar je het moet downloaden
je kan het ook in een install bestantje propen dat je dan moet runnen(dat doe ik wel even voor je)
ps zit er een install.php of zoiets bestantje in

//edit gebruik dit script

Code: Selecteer alles

<?php
/***************************************************************************
 *                               db_update.php
 *                            -------------------
 *
 *   copyright            : ©2003 Freakin' Booty ;-P & Antony Bailey
 *   project              : http://sourceforge.net/projects/dbgenerator
 *   Website              : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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[] = "CREATE TABLE `tweede." . $table_prefix . "profile_config` ( 
  `config_name` varchar(255) NOT NULL default '', 
  `config_value` varchar(255) NOT NULL default '', 
  PRIMARY KEY  (`config_name`) 
) TYPE=MyISAM";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_email', '1')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_icq', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_website', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_from', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_sig', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_aim', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_yim', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_msnm', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_occ', '0')";
$sql[] = "INSERT INTO `tweede." . $table_prefix . "profile_config` VALUES ('user_interests', '0')";

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">&nbsp;</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.<br />If you have run into any errors, please visit the <a href="http://www.phpbbsupport.co.uk" target="_phpbbsupport">phpBBSupport.co.uk</a> and ask someone for help.</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);

?>
Laatst gewijzigd door desert spider op 11 aug 2004, 14:05, 6 keer totaal gewijzigd.

cartoontje
Berichten: 1518
Lid geworden op: 29 jun 2003, 10:57
Locatie: Home Sweet Home
Contacteer:

Bericht door cartoontje » 11 aug 2004, 13:57


snoopy
Berichten: 23
Lid geworden op: 23 jun 2004, 19:36

Bericht door snoopy » 11 aug 2004, 14:13

heel erg bedankt voor alle moeite en sorry dat ik zo lastig ben... maar ik heb de code die je liet zien gerund, maar kreeg toen dit:

Code: Selecteer alles

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/httpd/vhosts/shirin.nl/httpdocs/install.php on line 2

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/httpd/vhosts/shirin.nl/httpdocs/install.php on line 2

Parse error: parse error in /home/httpd/vhosts/shirin.nl/httpdocs/install.php on line 2
lijkt me niet ok, wel?

misschien moet ik inderdaad die phpMyAdmin maar ergens gaan zoeken. volgens mij heb ik die niet.

cartoontje
Berichten: 1518
Lid geworden op: 29 jun 2003, 10:57
Locatie: Home Sweet Home
Contacteer:

Bericht door cartoontje » 11 aug 2004, 14:27

Je kunt het downloaden van http://www.phpmyadmin.net! :)

Gebruikersavatar
Leipo
Berichten: 4693
Lid geworden op: 22 feb 2003, 12:29
Contacteer:

Bericht door Leipo » 11 aug 2004, 14:36

cartoontje schreef:Je kunt het downloaden van http://www.phpmyadmin.net! :)
Hij heeft een vaste host.
Vraag het eens aan je provider!
Elke host bied heeft het wel.
[+] Isento at DeviantArt

snoopy
Berichten: 23
Lid geworden op: 23 jun 2004, 19:36

Bericht door snoopy » 12 aug 2004, 13:23

ok tnx. phpmyadmin is nu up en running.
heb de code ingevoerd en gerund.... maar nog niets....
hij zei dit:

Fout

SQL-query :

define(

'IN_PHPBB', true
)

MySQL retourneerde:


#1064 - You have an error in your SQL syntax near 'define('IN_PHPBB', true)' at line 1


wat doe ik fout?

Gebruikersavatar
Leipo
Berichten: 4693
Lid geworden op: 22 feb 2003, 12:29
Contacteer:

Bericht door Leipo » 12 aug 2004, 13:26

Probeer ze eens apart.
Dus eerst,

Code: Selecteer alles

CREATE TABLE `tweede.phpbb_profile_config` ( 
  `config_name` varchar(255) NOT NULL default '', 
  `config_value` varchar(255) NOT NULL default '', 
  PRIMARY KEY  (`config_name`) 
) TYPE=MyISAM;
en dan..

Code: Selecteer alles

INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_email', '1'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_icq', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_website', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_from', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_sig', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_aim', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_yim', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_msnm', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_occ', '0'); 
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_interests', '0');

Gebruikersavatar
desert spider
Berichten: 1101
Lid geworden op: 08 feb 2004, 18:51

Bericht door desert spider » 12 aug 2004, 13:27

je moet het a part doen

eers dit in voeren

Code: Selecteer alles

CREATE TABLE `tweede.phpbb_profile_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`)
) TYPE=MyISAM;
en als je dat gedaan hebt dan dit

Code: Selecteer alles

INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `tweede.phpbb_profile_config` VALUES ('user_interests', '0');
//edit// weer te laat

snoopy
Berichten: 23
Lid geworden op: 23 jun 2004, 19:36

Bericht door snoopy » 12 aug 2004, 13:38

ok, bedankt! :-)

hij zegt wel steeds dit:

Code: Selecteer alles

#1103 - Incorrect table name 'tweede.phpbb_profile_config' 

#1103 - Incorrect table name 'tweede.phpbb_profile_config' 
dan is het nog niet goed he?

Gesloten