View Full Version : What is this? tables real prefix instead of {prefix}
TurXaliM
03-19-2007, 03:09 PM
Hello every body,
I'm newbie + My English isn't been;
What is this
What is this my tables real prefix instead of {prefix}
I haven't working this query :(
INSERT INTO `{prefix}config` (`id_group` , `name` , `value` , `multiple_values` , `type` , `description` , `order` )
VALUES ('1', 'google_map', '', '', 'textarea', 'Google Maps', '300');
TurXaliM
03-19-2007, 09:38 PM
What i will put for prefix :s ?
Dave Baker
03-19-2007, 10:10 PM
Hello TurXaliM,
Instead of {prefix} you should specify your prefix for database tables of your directory. By default in installation process script uses v2102_ prefix. You can check your prefix in includes/config.inc.php, try to find code like this:
define("DBHOST", "localhost");
define("DBNAME", "dbaker");
define("DBUSER", "dbaker");
define("DBPASS", " :) ");
define("PREFIX", "v2102_"); // it will be your prefix
define("DBPORT", "3306");
OR
You can use code with {prefix} instead of your actual prefix in Admin Panel » Manage Database » SQL Management
TurXaliM
03-19-2007, 11:23 PM
I get always this error;
Query Failed:
Table 'txmeurot_txmtlist.{v2102_}config' doesn't exist
Dave Baker
03-19-2007, 11:27 PM
You should use prefix {v2102_} without braces. Only v2102_.
Your code should look like this:
INSERT INTO `v2102_config` (`id_group` , `name` , `value` , `multiple_values` , `type` , `description` , `order` )
VALUES ('1', 'google_map', '', '', 'textarea', 'Google Maps', '300');
TurXaliM
03-20-2007, 12:04 AM
Ahh, thanks you very much.
Done :)
Dave Baker
03-20-2007, 12:45 AM
You're welcome TurXaliM!
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.