Strona 1 z 1

Problem z wykonaniem zapytania SQL

: 07 lutego 2009, 22:32
autor: Sccubia Polacco
Witam, instalując dziś moda ACP Announcement centre phpbb3 1 0 0b w instrukcji jestem proszony o wykonanie takiego zapytania do bazy:

Kod: Zaznacz cały

CREATE TABLE phpbb_announcement_centre (
  announcement_show tinyint (1) NOT NULL,
  announcement_enable_guests tinyint (1) NOT NULL,
  announcement_show_birthdays tinyint (1) NOT NULL,
  announcement_birthday_avatar tinyint (1) NOT NULL,
  announcement_draft text NOT NULL,
  announcement_text text NOT NULL,
  announcement_text_guests text NOT NULL,
  announcement_title varchar(255) NOT NULL default '',
  announcement_title_guests varchar(255) NOT NULL default '',
  announcement_show_group varchar(255) NOT NULL default '')
  CHARACTER SET utf8 COLLATE utf8_bin;
  

INSERT INTO phpbb_announcement_centre (announcement_show, announcement_enable_guests, announcement_show_birthdays, announcement_birthday_avatar, announcement_title, announcement_text, announcement_draft, announcement_title_guests, announcement_text_guests, announcement_show_group) VALUES ('0', '1', '0', '0', 'Site Announcements', '[color=red][b]Site Announcements[/b][/color] can be seen here!! :mrgreen:', '[color=red][b]Draft Announcements[/b][/color] can be seen here!! :mrgreen:', 'Guest Announcements', '[color=green][b]Guest Announcements[/b][/color] can be seen here!! :wink:', '2');

INSERT INTO phpbb_config (config_name, config_value) VALUES ('announcement_show_index', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('announcement_enable', '1');


Niestety, zwracany jest następujący wynik:

Kod: Zaznacz cały

Błąd

zapytanie SQL: 

INSERT INTO phpbb_config( config_name, config_value ) 
VALUES (
'announcement_show_index', '0'
);



MySQL zwrócił komunikat:  
#1146 - Table 'coaxials_for01wmx.phpbb_config' doesn't exist

Adres forum: http://windowsmx.pl/
phpbb 3.0.4
forum było aktualizowane
serwer: dhosting
Problem, no cóż pojawił się dziś, instalowałem wcześniej mody, które wymagały zapytań do SQL,
baza ma obecnie 64 tabele, więc raczej żadnej nie brakuje..

Re: Problem z wykonaniem zapytania SQL

: 07 lutego 2009, 22:52
autor: Mary$
zgaduję, że masz zły prefiks tabeli

W zapytaniu masz:

Kod: Zaznacz cały

phpbb_
a w bazie prawdobnie:

Kod: Zaznacz cały

phpbb3_

Re: Problem z wykonaniem zapytania SQL

: 08 lutego 2009, 00:12
autor: Sccubia Polacco
Tak, w tym był problem, no cóż, nie na wszystkim można się znać :)
dziękuje :)