Difference between revisions of "How to determine your database prefix"

From Joomla! Documentation

(Corrected spelling, markup and spacing.)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
There are two ways to determine your database prefix. One requires access to the root of your Joomla! site while the other requires access to the Joomla! back-end.
+
There are few methods to determine your database prefix. The recommended method is to view the [[J3.2:Global_configuration#.E2.80.9CDatabase_Settings.E2.80.9D_Group|Global Configuration Database Settings]] Group from the administrator view of your Joomla! website. There are two other methods also available, but require server access to the files or the database.
 +
{{warning|Changing your prefix in Global Settings will break your website! If you must change the prefix of your database, it will be a two step process and beyond the scope of this article.|title=Never Change Your Database Prefix!}}
 
== Using the Joomla! Back-end (Super administrators only) ==
 
== Using the Joomla! Back-end (Super administrators only) ==
 
# Log in to the Joomla! backend.
 
# Log in to the Joomla! backend.
Line 5: Line 6:
 
# Go to the ''Server'' Tab.
 
# Go to the ''Server'' Tab.
 
# Under ''Database Settings'', look for ''Database Prefix'' field. The value you find there is your database prefix.
 
# Under ''Database Settings'', look for ''Database Prefix'' field. The value you find there is your database prefix.
''Tip: Look for the yellow warning symbol''
+
{{tip|Look for the yellow warning symbol.}}
  
 
== Using Configuration.php (Requires Access to the Site Root) ==
 
== Using Configuration.php (Requires Access to the Site Root) ==
Line 12: Line 13:
 
# Search for the word ''dbprefix''.
 
# Search for the word ''dbprefix''.
 
# You'll see the line var $dbprefix = 'value'. The value you see here (for example, ''jos_'') is your database prefix.
 
# You'll see the line var $dbprefix = 'value'. The value you see here (for example, ''jos_'') is your database prefix.
 +
 +
== Using a Database Interface (Requires Access to the Database, e.g. phpMyAdmin for MySQL) ==
 +
{{underconstruction}}
  
 
[[Category:Database]]
 
[[Category:Database]]
[[Category:Stubs]]
 

Revision as of 09:15, 9 December 2013

There are few methods to determine your database prefix. The recommended method is to view the Global Configuration Database Settings Group from the administrator view of your Joomla! website. There are two other methods also available, but require server access to the files or the database.

Stop hand nuvola.svg.png
Never Change Your Database Prefix!

Changing your prefix in Global Settings will break your website! If you must change the prefix of your database, it will be a two step process and beyond the scope of this article.

Using the Joomla! Back-end (Super administrators only)[edit]

  1. Log in to the Joomla! backend.
  2. Go to Global Configuration by clicking the button in the control panel or via the menu (Site > Global Configuration).
  3. Go to the Server Tab.
  4. Under Database Settings, look for Database Prefix field. The value you find there is your database prefix.
A Tip!

Look for the yellow warning symbol.

Using Configuration.php (Requires Access to the Site Root)[edit]

  1. Go to the document root and find the configuration.php file.
  2. Open the file in a text editor.
  3. Search for the word dbprefix.
  4. You'll see the line var $dbprefix = 'value'. The value you see here (for example, jos_) is your database prefix.

Using a Database Interface (Requires Access to the Database, e.g. phpMyAdmin for MySQL)[edit]

Documentation all together tranparent small.png
Under Construction

This article or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this article or section has not been edited in several days, please remove this template.
This article was last edited by Tom Hutchison (talk| contribs) 10 years ago. (Purge)