Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
JamesIsDusk is on a distinguished road
 
Posts: 20
Join Date: Jun 2012
Default What Do I Put In This Code? - 06-21-2012, 02:31 AM

I'm new to MySQL and I don't know what to put in this code:

define('TABLE_PREPEND', '?????');
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 762
Join Date: Dec 2010
Default 06-21-2012, 03:51 AM

TABLE_PREPEND means table_prefix. If you want to add a prefix before all table names to be created,
put the prefix that you want.

If you want to add xxxx before table name: define('TABLE_PREPEND', 'xxxxx_');

If you don't want to add prefix: define('TABLE_PREPEND', '');

If--define('TABLE_PREPEND', '');--cause error, comment or delete this code.

Last edited by grace1004; 06-21-2012 at 04:06 AM.
Reply With Quote
(#3 (permalink))
Old
Junior Member
JamesIsDusk is on a distinguished road
 
Posts: 20
Join Date: Jun 2012
Default 06-21-2012, 04:02 AM

How do I create a table?
Reply With Quote
(#4 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 762
Join Date: Dec 2010
Default 06-21-2012, 04:06 AM

Looks like you are installing a CMS program. Tables will be automatically created during
installation.
Reply With Quote
(#5 (permalink))
Old
Junior Member
JamesIsDusk is on a distinguished road
 
Posts: 20
Join Date: Jun 2012
Default 06-21-2012, 04:11 AM

Then what should i put in the code? I'm really confused about this. Haha.
Reply With Quote
(#6 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 762
Join Date: Dec 2010
Default 06-21-2012, 06:54 AM

For example, if you want to put prefix 'test' for all tables, fill out the code as shown below:

define('TABLE_PREPEND', 'test_');

Then, a name of table to be created, for example, would be something like: test_users.

If you don't want to put any prefix, leave it empty as shown below:

define('TABLE_PREPEND', '');

Last edited by grace1004; 06-21-2012 at 07:50 AM.
Reply With Quote
(#7 (permalink))
Old
kuroneko's Avatar
Senior Member
kuroneko is on a distinguished road
 
Posts: 117
Join Date: Jul 2012
Default 07-03-2012, 05:07 PM

Im just wondering what cms are you using? Seems like you are installing it manually.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com