Pagina 1 van 2

Database overzetten

Geplaatst: 09 sep 2004, 20:38
door martijndoes
Ok ik had dus een forum bij messageboard.nl maar nu gaan we naar een andere host omdat we btje teveel dataverkeer hebben. Nu hebben we daar netjes een backup gedownload via hun menu alleen als ik de database wil overzetten krijg ik foutmeldingen. Doe ik t automatisch dan krijg ik een timeout en doe ik het handmatig (stukje voor stukje copy pasten) krijg ik verschillende foutmeldingen. Als ik het eerste deel bijvoorbeeld invoer krijg ik deze fout:

MySQL said:


#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '---------------------------------------------------------
--


en doe ik het laatste stukje krijg ik deze foutmelding:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'NTO phpbb_vote_results VALUES (9,6,'Hoezo kopzorgen??',4)' at l

weet iemand hoe dat op te lossen?

Geplaatst: 09 sep 2004, 23:21
door mosymuis
Die ---- streepjes verwijder je, en als er een query is die begint met NSERT is de backup gewoon niet goed gedownload. Doe het ook liever met phpMyAdmin dan met de ingebouwde mogelijkheid van phpBB; dat werkt veel beter.

Als je backup intact is kan je deze op verschillende manieren uploaden, afhankelijk van de grootte en je mogelijkheden. Kijk eens hier.

Geplaatst: 10 sep 2004, 09:57
door martijndoes
Ik doe het via phpMyAdmin dus dat is het probleem niet. De backup is 28mb dus je zou het via de gewone methode moeten kunnen zeg maar (browsen naar de file en dan go drukken) alleen dan krijg ik dus een time out.

dat NTO zou misschien kunnen komen door verkeerde copy pasten...ik zal eens proberen goed te copy pasen :)

in ieder geval alvast bedankt voor de hulp!

Geplaatst: 11 sep 2004, 12:17
door martijndoes
ok hij doet het inmiddels...bleek dus dat ik gewoon middenin een query knipte (dat werkt niet natuurlijk ;))

in ieder geval bedankt voor de hulp

Geplaatst: 12 sep 2004, 11:14
door martijndoes
ok nog een klein probleempje. Bij de begindatum van mn forum staat 1-1-1970. Dat moet ik vast ergens in de database veranderen maar weet iemand waar ik dit kan doen?

Geplaatst: 12 sep 2004, 11:35
door cartoontje
tabel config

board_startdate

Let op: Tijd is in EPOCH!

Geplaatst: 12 sep 2004, 12:17
door martijndoes
ik kan t echt niet vinden hoor :$

Geplaatst: 12 sep 2004, 15:10
door cartoontje
Via phpmyadmin navigeer je naar de tabel phpbb_config (indien je prefix phpbb is) en dan zoek je board_startdate. Daar staat nu waarschijnlijk het getal 0.

Zoek op Google naar een EPOCH generator en zet daar een datum in. Het epoch getal dat eruit komt vul je in op de plek waar nu de 0 staat! :)

Geplaatst: 12 sep 2004, 16:21
door martijndoes
die phpbbconfig kan ik vinden maar als ik dan via browse zoek vind ik geen board_startdate (op alledrie de pagina's niet) en via search krijg ik dit:

SELECT *
FROM `phpbb_config`
WHERE board_startdate
LIMIT 0 , 30

MySQL said:


#1054 - Unknown column 'board_startdate' in 'where clause'

bestaat dus ook niet blijkbaar :S

Geplaatst: 12 sep 2004, 21:09
door cartoontje

Code: Selecteer alles

board_startdate

Code: Selecteer alles

1092405990

Geplaatst: 13 sep 2004, 13:42
door mosymuis
martijndoes schreef:via search krijg ik dit:

SELECT *
FROM `phpbb_config`
WHERE board_startdate
LIMIT 0 , 30

MySQL said:


#1054 - Unknown column 'board_startdate' in 'where clause'

bestaat dus ook niet blijkbaar :S
De query is behoorlijk fout.

Code: Selecteer alles

SELECT * 
FROM phpbb_config 
WHERE config_name = 'board_startdate';

Geplaatst: 22 sep 2004, 14:18
door martijndoes

Code: Selecteer alles

 phpMyAdmin SQL Dump
# version 2.5.6
# http://www.phpmyadmin.net
#
# Host: localhost
# Generation Time: Sep 22, 2004 at 09:16 AM
# Server version: 4.0.20
# PHP Version: 4.2.3
# 
# Database : `jazz_final2`
# 

# --------------------------------------------------------

#
# Table structure for table `phpbb_config`
#

CREATE TABLE `phpbb_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`),
  KEY `config_name` (`config_name`),
  FULLTEXT KEY `config_name_2` (`config_name`),
  FULLTEXT KEY `config_name_3` (`config_name`),
  FULLTEXT KEY `config_name_4` (`config_name`),
  FULLTEXT KEY `config_name_5` (`config_name`)
) TYPE=MyISAM;

#
# Dumping data for table `phpbb_config`
#

INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('config_id', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('board_disable', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('sitename', 'Sportdreamzz');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('site_desc', 'het SD alternatief!!');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('cookie_name', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('cookie_path', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('cookie_domain', 'host15.dotservant.com');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('cookie_secure', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('session_length', '3600');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_html', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_html_tags', 'b,i,u,pre');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_bbcode', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_smilies', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_sig', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_namechange', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_theme_create', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_avatar_local', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_avatar_remote', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('allow_avatar_upload', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('override_user_style', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('posts_per_page', '30');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('topics_per_page', '50');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('hot_threshold', '30');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('max_poll_options', '10');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('max_sig_chars', '255');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('max_inbox_privmsgs', '50');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('max_sentbox_privmsgs', '25');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('max_savebox_privmsgs', '75');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('board_email_sig', 'Mac');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('board_email', 'skandalouz@xs4all.nl');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('smtp_delivery', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('smtp_host', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('smtp_username', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('smtp_password', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('require_activation', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('flood_interval', '15');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('board_email_form', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('avatar_filesize', '24576');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('avatar_max_width', '80');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('avatar_max_height', '80');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('avatar_path', 'images/avatars');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('avatar_gallery_path', 'images/avatars/gallery');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('smilies_path', 'images/smiles');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('default_style', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('default_dateformat', 'D M d, Y H:i');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('board_timezone', '2');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('prune_enable', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('privmsg_disable', '0');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('gzip_compress', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('coppa_fax', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('coppa_mail', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('record_online_users', '26');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('record_online_date', '1095263340');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('server_name', 'host15.dotservant.com/~jazz');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('server_port', '80');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('script_path', '/phpBB2/');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('version', '.0.8a');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('default_lang', 'dutch');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('site_logo', 'http://www.xs4all.nl/~vandoes/sportdreamzz.gif');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('max_smilies', '10');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('custom_head', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('custom_footer', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('custom_header', '');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('monthly_traffic', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('ad_code', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('reclame', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('ad_extra', '1');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('public_rank_sets', '0');
ik neem aan dat ik iets moet toevoegen als:

Code: Selecteer alles

INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('board_startdate', '1087937616');
of werkt dat zo niet?

Geplaatst: 22 sep 2004, 14:20
door mosymuis
In het

Code: Selecteer alles

-gedeelte gaf ik zelf al de verbeterde versie van de query.

Geplaatst: 22 sep 2004, 14:30
door martijndoes
dan nog vind ie niks :s

Geplaatst: 22 sep 2004, 14:41
door martijndoes
Search results for "startdate" (at least one of the words):
0 match(es) inside table mx_block

0 match(es) inside table mx_block_system_parameter

0 match(es) inside table mx_callite_config

0 match(es) inside table mx_callite_events

0 match(es) inside table mx_chatbox

0 match(es) inside table mx_chatbox_config

0 match(es) inside table mx_chatbox_session

0 match(es) inside table mx_column

0 match(es) inside table mx_column_block

0 match(es) inside table mx_function

0 match(es) inside table mx_ina_ban

0 match(es) inside table mx_ina_categories

0 match(es) inside table mx_ina_categories_data

0 match(es) inside table mx_ina_challenge_tracker

0 match(es) inside table mx_ina_challenge_users

0 match(es) inside table mx_ina_cheat_fix

0 match(es) inside table mx_ina_config

0 match(es) inside table mx_ina_data

0 match(es) inside table mx_ina_games

0 match(es) inside table mx_ina_scores

0 match(es) inside table mx_ina_top_scores

0 match(es) inside table mx_ina_trophy_comments

0 match(es) inside table mx_menu_categories

0 match(es) inside table mx_menu_nav

0 match(es) inside table mx_module

0 match(es) inside table mx_page

0 match(es) inside table mx_parameter

0 match(es) inside table mx_parameter_option

0 match(es) inside table mx_portal

0 match(es) inside table mx_sitestats_config

0 match(es) inside table mx_sitestats_counter

0 match(es) inside table mx_sitestats_referer

0 match(es) inside table phpbb_advanced_username_color

0 match(es) inside table phpbb_auth_access

0 match(es) inside table phpbb_banlist

0 match(es) inside table phpbb_categories

0 match(es) inside table phpbb_config

0 match(es) inside table phpbb_disallow

0 match(es) inside table phpbb_forum_prune

0 match(es) inside table phpbb_forums

0 match(es) inside table phpbb_groups

0 match(es) inside table phpbb_posts

1 match(es) inside table phpbb_posts_text Browse Delete

0 match(es) inside table phpbb_privmsgs

0 match(es) inside table phpbb_privmsgs_text

0 match(es) inside table phpbb_ranks

0 match(es) inside table phpbb_ranks_config

0 match(es) inside table phpbb_ranks_sets

0 match(es) inside table phpbb_search_results

1 match(es) inside table phpbb_search_wordlist Browse Delete

0 match(es) inside table phpbb_search_wordmatch

0 match(es) inside table phpbb_sessions

0 match(es) inside table phpbb_smilies

0 match(es) inside table phpbb_themes

0 match(es) inside table phpbb_themes_name

0 match(es) inside table phpbb_topics

0 match(es) inside table phpbb_topics_watch

0 match(es) inside table phpbb_user_group

0 match(es) inside table phpbb_users

0 match(es) inside table phpbb_vote_desc

0 match(es) inside table phpbb_vote_results

0 match(es) inside table phpbb_vote_voters

0 match(es) inside table phpbb_words

Total: 2 match(es)

Geplaatst: 22 sep 2004, 14:42
door mosymuis
martijndoes schreef:dan nog vind ie niks :s
De query klopt, in elk normaal phpBB forum moet hij de rij met je phpBB versie nummer teruggeven. Je doet dus iets verkeerd, of je phpbb_config tabel is niet compleet.

//edit
Je begrijpt me niet, ik doelde op deze query:

Code: Selecteer alles

SELECT *
FROM phpbb_config
WHERE config_name = 'board_startdate';

Geplaatst: 22 sep 2004, 14:47
door martijndoes
ja sorry die had ik ook geprobeerd...misschien doe ik het fout ofzo ik zal even uitleggen wat ik doe:

phpmyadmin --> database --> phpbb config --> search

dan bij where voer ik dat laatste deel in van jouw query: config_name = 'board_startdate';

en dan krijg ik dit er uit:

MySQL returned an empty result set (i.e. zero rows). (Query took 0.0006 sec)

SQL-query :
Wijziging: [Explain SQL] [Create PHP Code]
SELECT *
FROM `phpbb_config`
WHERE config_name = 'board_startdate';

Geplaatst: 22 sep 2004, 14:51
door mosymuis
Waarom de zoek functionaliteit gebruiken? :? Je hebt de query al! Vul deze gewoon in het "SQL" scherm...

Geplaatst: 22 sep 2004, 15:00
door martijndoes
Your SQL-query has been executed successfully (Query took 0.0002 sec)

SQL-query :
Wijziging: [Explain SQL] [Create PHP Code]
SELECT *
FROM `phpbb_config`
WHERE config_name = 'board_startdate' LIMIT 0 , 30

en verder zie ik niks

Geplaatst: 22 sep 2004, 15:02
door mosymuis
Tsja...
mosymuis schreef:De query klopt, in elk normaal phpBB forum moet hij de rij met je phpBB versie nummer teruggeven. Je doet dus iets verkeerd, of je phpbb_config tabel is niet compleet.