Author Topic: DB Error: Bad SQL Query: SELECT setting_name, setting_value  (Read 11031 times)

0 Members and 1 Guest are viewing this topic.

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
DB Error: Bad SQL Query: SELECT setting_name, setting_value
« on: January 07, 2009, 05:05:24 PM »

Dear friends,

I am new to 4images , trying to install 4images first time , but seems something wrong in my attempt, if any one can help me to sort it out.

Quote
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
Table '*****_images.4images_settings' doesn't exist
ERROR: Could not load configuration settings!

I am trying to install 1.7.6 latest available for download.

whats wrong ??

Regards,
Vivek

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #1 on: January 07, 2009, 08:27:38 PM »
You can check error on my demo domain.

« Last Edit: January 08, 2009, 08:54:29 PM by Vivek »

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #2 on: January 07, 2009, 08:41:11 PM »
welcome Vivek to 4images forum,

... as the message said, your '4images_settings' table doesn't exist ... I don't know why ...
... so, if it is a fresh installation ... delete all files and db tables ... and try a new installation ...
... I think, it is the fastest way for a 100% working 4images installation ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #3 on: January 08, 2009, 04:27:18 PM »
welcome Vivek to 4images forum,

... as the message said, your '4images_settings' table doesn't exist ... I don't know why ...
... so, if it is a fresh installation ... delete all files and db tables ... and try a new installation ...
... I think, it is the fastest way for a 100% working 4images installation ...

Thanks mawenzi,

but i like to say , i had been try to re-install 3 time before starting a thread , using wordpress , so i do this thing first , infact after first failure , i re-download whole folder upziped it and upload in different folder) still getting same answer

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #4 on: January 08, 2009, 04:38:08 PM »
... your setting table name is not ... 'C********s.4images_settings' ... !
... I don't know why you use such a name ...
... but check your db and table names via phpMyAdmin ...
... and your config.php for $table_prefix = "4images_"; ...
« Last Edit: January 08, 2009, 09:17:10 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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: SELECT setting_name, setting_value
« Reply #5 on: January 08, 2009, 04:47:13 PM »
During 4images installation, did 4images say it installed database successfully?

Did you create a new database with the name of "C242092_images" ? (this is done via your host's ACP)
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 Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #6 on: January 08, 2009, 09:06:18 PM »
... your setting table name is not ... '*****_images.4images_settings' ... !
... I don't know why you use such a name ...
... but check your db and table names via phpMyAdmin ...
... and your config.php for $table_prefix = "4images_"; ...

I don't have much knowledge of phpMyAdmin , but when i check through phpMyAdmin , i found "No tables found in database." in Structure tab.

@mawenzi , please remove user name starting with "C****" from your previous post and V@no post for my security :)

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #7 on: January 08, 2009, 09:07:48 PM »
During 4images installation, did 4images say it installed database successfully?

Did you create a new database with the name of "*****_images" ? (this is done via your host's ACP)

No sir , after upload , when i click the link , i got this error.

I have created new database for 4images.
« Last Edit: January 08, 2009, 10:34:36 PM by Vivek »

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #8 on: January 08, 2009, 09:18:16 PM »
@mawenzi , please remove user name starting with "C****" from your previous post and V@no post for my security :)

... done ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #9 on: January 08, 2009, 10:20:58 PM »
what link you are referring to?
when 4images can't find config.php it automaticaly installation process, where you enter all needed information for you database
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #10 on: January 08, 2009, 10:33:25 PM »
what link you are referring to?
when 4images can't find config.php it automaticaly installation process, where you enter all needed information for you database

no i manually edited config.php details, is it the problem ??

i edited than uploaded the file. I have not enter any info direct on webpage , what i done till now is,

I downloaded 4images 1.7.6
unzip it.
Edited the username, host, password in config.new.php file and rename it to config.php
uploaded it to my server.

than click to my domain

now please tell me anything wrong , i did in this steps

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #11 on: January 08, 2009, 10:59:29 PM »
In config.new.php file , i edited following link and renamed it to config.php

$db_servertype = "mysql";
$db_host = "myhost";
$db_name = "Database Name";
$db_user = "Database User";
$db_password = "PASSWORD";

$table_prefix = "4images_";

define("4IMAGES_ACTIVE", 1);



Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #12 on: January 08, 2009, 11:03:46 PM »
there we go, found the problem. config.php means nothing if database is not installed.
delete config.php from the server and start installation process. once 4images finished installing database it will try create config.php, if it fails saving the file, it will offer you download it, no file editing required.
more info about installation process you can find in docs/installation.txt
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #13 on: January 08, 2009, 11:24:03 PM »
hip hip hurry ,its done

I edited the file as we do it in wordpress , first edit than upload , thanks for solving the matter.


Thanks V@no


Offline Vivek

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: DB Error: Bad SQL Query: SELECT setting_name, setting_value
« Reply #14 on: January 08, 2009, 11:27:05 PM »
one question , how can i disable new registration ??


and which template this website is using ??

http://www.moviegupshup.net
« Last Edit: January 09, 2009, 12:41:29 AM by Vivek »