Content Management System - CMS : eXV2 
Home
News
Forum
Downloads
Download Module
Sitemap
Partnerseiten
RSS News
Kontakt/Info
Sprache
EnglishFrench
Suchen
Login
Nickname
Passwort

Registrieren?
Passwort?
Navigation
 Home News  Forum Neueste Beiträge  Downloads Download Module eXV² Themes  Weblinks Tutorial Changelog 2.3.1 Jobcenter Gebrauchtmarkt OSMap  Sponsor Kalendersystem Sitemap Partnerseiten RSS News Kontakt/Info Webseiten Wetter
Willkommen im Free Web CMS : eXV² Forum!
  Forenarchiv
     eXV2 Module
  [Arcade] Datenbankproblem

Forum : eXV2 Module

Titel : [Arcade] Datenbankproblem

© 2004-2012 www.exv2.de
http://www.exv2.de

URL dieser Diskussion
http://www.exv2.de/modules/newbb_plus/viewtopic.php?topic_id=3545&forum=7


 Dj_PD :

28.08.2006 11:41
 Hallo,

ich habe da mal ein kleines Problem mit dem Arcade-Modul (also das neue).
Ich habe es soweit fertig, habe das Modul einmal deinstalliert und dann nochmal in der Datenbank alle Einträge die mit Arcade zu tun hatten gelöscht.
Dann habe ich das Modul wieder installiert und es gibt Fehler.
Bei der installations installiert er mir nur 4 Tabellen anstatt 6.
(arcade_cats, arcade_games, arcade_scores und arcade_groups_downzip installiert er... arcade_matchpoints und arcade_topflop nicht.)

Bei der deinstallation sagt er mir auch:
Konnte nicht Deinstallieren Punkte-Spiele. Fehler:
- Could not delete table e_xoops_arcade_matchpoints
- Could not delete table e_xoops_arcade_topflop
(is ja auch klar, weil er die ja nicht installiert hat)

Meine Frage ist jetzt: Warum???

In der xoops_version.php habe ich folgendes rein gesetzt:
Code:
// SQL
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';

$modversion['tables'][0] = 'arcade_cats';
$modversion['tables'][1] = 'arcade_games';
$modversion['tables'][2] = 'arcade_scores';
$modversion['tables'][3] = 'arcade_groups_downzip';
$modversion['tables'][4] = 'arcade_matchpoints';
$modversion['tables'][5] = 'arcade_topflop';


Die SQL Datei sieht wie folgt aus:
(Die zusätzlichen Tabellen habe ich mit phpMyAdmin automatisch erstellt)
Code:

# phpMyAdmin SQL Dump
# version 2.5.3
# http://www.phpmyadmin.net
#
# Host: localhost
# Generation Time: Apr 28, 2004 at 07:29 PM
# Server version: 4.0.16
# PHP Version: 4.3.4
#
# Database : `aqvp07_exoops`
#

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

#
# Table structure for table `arcade_cats`
#

CREATE TABLE arcade_cats (
cat_id int(10) unsigned NOT NULL auto_increment,
cat_name varchar(64) NOT NULL default '',
is_active tinyint(1) unsigned NOT NULL default '1',
PRIMARY KEY (cat_id)
) TYPE=MyISAM;

#
# Dumping data for table arcade_cats
#

INSERT INTO arcade_cats VALUES (1, 'General', 1);

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

#
# Table structure for table `arcade_games`
#

CREATE TABLE arcade_games (
gid int(11) NOT NULL auto_increment,
gname varchar(40) NOT NULL default '',
gwords text NOT NULL,
gcount int(11) NOT NULL default '0',
gtitle varchar(40) NOT NULL default '',
bgcolor varchar(6) NOT NULL default '000',
active tinyint(1) NOT NULL default '1',
gwidth int(11) NOT NULL default '400',
gheight int(11) NOT NULL default '400',
position mediumint(8) NOT NULL default '1',
cat_id int(10) unsigned NOT NULL default '1',
object text NOT NULL,
gkeys text NOT NULL,
date_added int(10) NOT NULL default '0',
UNIQUE KEY gid (gid)
) TYPE=MyISAM;

#
# Dumping data for table `arcade_games`
#

INSERT INTO arcade_games VALUES (1, 'asteroids', ' Kill some asteroids and flying saucers&amp;#33; ', 0, 'Asteroids', '000000', 1, 500, 375, 1, 1, 'Shoot all of the asteroids.', 'Arrow keys move the ship.<br>rnSpace bar fires.', 0);
INSERT INTO arcade_games VALUES (2, 'invaders', ' Kill the invading army of UFO&amp;#39;s ', 0, 'Space Invaders', '000000', 1, 500, 410, 1, 1, 'To shoot all of the aliens.', 'Left and Right arrow keys to move.<br>rnSpace bar to shoot.', 0);
INSERT INTO arcade_games VALUES (3, 'pacman', ' Eat all the little dots without letting the ghosts get you&amp;#33; ', 0, 'Pacman', '000000', 1, 360, 420, 1, 1, 'Eat all of the dots.', 'Arrow keys to move.', 0);

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

#
# Table structure for table `arcade_scores`
#

CREATE TABLE arcade_scores (
score_id int(10) unsigned NOT NULL auto_increment,
gid int(10) unsigned NOT NULL default '0',
uid int(10) unsigned NOT NULL default '0',
score int(10) unsigned NOT NULL default '0',
score_date int(10) unsigned NOT NULL default '0',
PRIMARY KEY (score_id)
) TYPE=MyISAM;

#
# Dumping data for table arcade_scores
#

# --------------------------------------------------------
#
# Table structure for table `arcade_groups_downzip`
#

CREATE TABLE arcade_groups_downzip (
groupid mediumint(8) unsigned NOT NULL default '0',
uid mediumint(8) unsigned NOT NULL default '0'
) TYPE=MyISAM;

#
# Dumping data for table e_xoops_arcade_groups_downzip
#

# --------------------------------------------------------
#
# Table structure for table `arcade_matchpoints`
#

CREATE TABLE arcade_matchpoints (
matchpoints_id int(10) unsigned NOT NULL auto_increment,
uid int(10) unsigned NOT NULL default '0',
gid int(10) unsigned NOT NULL default '0',
crashmode_score int(10) unsigned NOT NULL default '0',
crashmode_date timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
battlemode_hfordern int(10) unsigned NOT NULL default '0',
battlemode_vteitigen int(10) unsigned NOT NULL default '0',
ges_matchpoints int(10) unsigned NOT NULL default '0',
PRIMARY KEY (matchpoints_id)
) TYPE=MyISAM

#
# Dumping data for table `e_xoops_arcade_matchpoints`
#

# --------------------------------------------------------
#
# Table structure for table `arcade_topflop`
#

CREATE TABLE arcade_topflop (
topflop_id int(10) unsigned NOT NULL auto_increment,
gid int(10) unsigned NOT NULL default '0',
uid int(10) unsigned NOT NULL default '0',
top_game int(10) unsigned NOT NULL default '0',
flop_game int(10) unsigned NOT NULL default '0',
PRIMARY KEY (topflop_id)
) TYPE=MyISAM

#
# Dumping data for table e_xoops_arcade_topflop
#


Weiß jemand Rat???
Was mach ich falsch???

Vielen Dank für Eure Hilfe...

 Picl :

28.08.2006 12:16
 Muss irgendwas mit der Topflop-DB zu tun haben, wenn ich dein SQL in PHPMyAdmin eingebe kommt folgender Fehler:

Zitat:

#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 'CREATE TABLE arcade_topflop (
topflop_id int(10) unsigned NOT NULL auto_increme' at line 15




Greetz,

Picl

 Dj_PD :

28.08.2006 14:55
 Hallo Picl,

danke für deine Antwort.
Ja, ich habs bei mir auch mal rein gemacht und er zeigt mir in matchpoint und topflop auch den Fehler an.
Nur ich weiß echt nicht wie das kommt.
In SQL bin ich jetzt nicht der brüller, als ich die Tabellen im phpMyAdmin erstellt hatte (per Hand) gab es keinen Fehler und alles wunderbar funktionierte...
Ich weiß nicht wie ich das hin bekommen könnte...
Hat jemand evtl. Rat für mich?


Gruss
Dj_PD

 Picl :

28.08.2006 19:56
 Ok, also ich glaube wir nähern uns: Hab hier noch ne MySQL 3.2 laufen, in der ich deine SQL auch mal eingetragen habe, da kommt jetzt folgendes:

#1064 - Fehler in der Syntax bei 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
battlemode_hford' in Zeile 15.

Wenn ich die Zeile entferne, bringt er wieder den Fehler in topflop. Trage ich aber nur eine der beiden Tabellen ein klappt alles wunderbar (im Falle matchpoint allerdings nur ohne die Zeile mit dem Timestamp). Sehr strange das ganze!


Greetz,

Picl

 Dj_PD :

29.08.2006 10:55
 Jo, genau das ist mir auch aufgefallen.
Ich habe gestern auch schon den google zum glühen gebracht, aber leider mit keinen wirklichen Erfolg.

Und was den Fehler angeht:
Bei arcade_matchpoints versteh ich das ja noch mit dem Timestamp...
Aber das arcade_topflop auch noch einen Fehler ausgibt, verstehe ich absolut nicht, da wenn ich mir mal so die Zeilen von arcade_scores ansehe, sind die ja von den Kommandos ziemlich identisch.

Also ich habe lokal ja die möglichkeit die DB zu exportieren.
Dort kann man aber soooo viel einstellen...
Egal wie ich exportiere, es tut sich nichts. Ich habe quasi alle Exportmöglichkeiten ausprobiert.
Aber halt....
Ich habs....

Wir beide können ja die Tabellen einzeln in die DB laden.
Das habe ich auch mal gemacht und es hat ja geklappt.
Jetzt bin ich mal hin gegangen und habe sie nochmal exportiert. (Also nicht lokal, sondern auf meinen Server)
Und siehe da
Aus

Code:
crashmode_date timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

macht er mir
Code:
crashmode_date timestamp(14) NOT NULL,


Ich habs dann auch gleich mal in meine sql Datei rein und einfach mal installiert und was is.....
ES FUNKTIONIERT Very Happy

Wegen so ne blöde 14 sitzt man hier 2 Tage und ist fast schon am durchdrehen.
Ich fass es nicht...

Also Picl vielen Lieben Dank für deine Hilfe, ohne dich hätte das wohl nicht geschafft, du hast ja quasi die richtige antwort schon geschrieben.
Ich werde jetzt nochmal testen ob auch alle Funktionen noch gehen. Ansonsten wird das jetzt entlich mit dem neuen Modul was.


Vielen Dank

Gruss
Dj_PD
Partnerseiten
http://www.en.exv2.eu/

Vote für eXV2
php
Kontakt/Info
  Kontakt
  Impressum
  Link zu uns
  AGB
  Datenschutzhinweis
Downloads
  eXV² Core
  Core Sprachfiles
eXV² Filecenter
  Downloads
  Download Module
  eXV² Themes
  Multilanguage Module
  Sprachfiles eXV² Module
eXV² Support
  France