Author Topic: DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5  (Read 5258 times)

0 Members and 1 Guest are viewing this topic.

Offline Berndte

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.opel4x4.de
DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5
« on: November 02, 2005, 06:30:42 PM »
Hallo,

nachdem unser Server auf MySQL 5 umgestellt wurde, da gibts diese Fehlermeldung:

Code: [Select]
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id LIMIT 648, 1
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ftp00017mrc/http/galerie/includes/db_mysql.php on line 116

Ich habe auch schon die neueste Version installiert -> keine Änderung.
Mein Hoster sagte, dass ich hier evtl einen Patch bekommen kann.

Danke schonmal

Gruss Bernd

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5
« Reply #1 on: November 02, 2005, 08:00:37 PM »
search: mysql v5
this has been discused already with the sollutions.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Berndte

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.opel4x4.de
Re: DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5
« Reply #2 on: November 02, 2005, 08:33:05 PM »
Hallo nochmal,

ich habe da nur diesen Beitrag gefunden: http://www.4homepages.de/forum/index.php?topic=8705.0
Nachdem ich die Änderungen gemacht habe kommt folgende Meldung:
Code: [Select]
Warning: main(./includes/db_mysqli.php) [function.main]: failed to open stream: No such file or directory in /home/ftp00017mrc/http/galerie/global.php on line 139

Warning: main() [function.include]: Failed opening './includes/db_mysqli.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/ftp00017mrc/http/galerie/global.php on line 139

Fatal error: Class 'Db' not found in /home/ftp00017mrc/http/galerie/global.php on line 140

Ich verstehe auch nicht, was das mit Version 5 zu tun hat?
Ist denn der aktuelle Download noch nicht gefixt?
Es werden doch demnächst sicher mehrere Server auf MySQL5 umgestellt, oder?


Offline Berndte

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.opel4x4.de
Re: DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5
« Reply #4 on: November 02, 2005, 10:36:30 PM »
Hallo,

neine, das habe ich trotz Suche nicht gefunden... habe echt alle möglichen Schreibweisen probiert, aber als Unterversion suchen  :roll:
Danke erstmal, aber was genau ist denn jetzt zu ändern?
Ich kenne das immer sehr schön übersichtlich als Updateanleitung vom phpBB.
Gibt es hierfür auch sowas? ... suche nach... ersetze mit, etc.

Gruss Bernd

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5
« Reply #5 on: November 03, 2005, 09:44:50 AM »
nein bisher noch nicht, aber vielleicht magst Du dir die Mühe ja jetzt machen... (o:

Offline Berndte

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.opel4x4.de
Re: DB Error: Bad SQL Query nach Datenbankupdate auf MySQL 5
« Reply #6 on: November 03, 2005, 04:21:10 PM »
...würde ich ja gerne. Ich bezweifel aber, dass das auch was gescheites wird  :|