Difference between revisions of "Talk:DB Variables Configuration"

From SME Server
Jump to navigationJump to search
(Add example of deteing or resting property value Bug 7348)
Line 7: Line 7:
  
 
==== Delete or reset a property value ====
 
==== Delete or reset a property value ====
 +
To delete a property value or reset to empty issue one of the following commands
  
To delete a property vale or reset to null issue either of the following commands
+
To reset to a empty value
 
 
 
  db accounts setprop key prop <nowiki>''</nowiki>
 
  db accounts setprop key prop <nowiki>''</nowiki>
 
or
 
or
 +
To delete the property
 
  db accounts delprop key prop
 
  db accounts delprop key prop
  
 
{{Warning box|Database parameters are case sensitive so take great care when typing at the server shell because no error messages are given should you make a typo.}}
 
{{Warning box|Database parameters are case sensitive so take great care when typing at the server shell because no error messages are given should you make a typo.}}

Revision as of 00:43, 14 February 2013

Following section to with new para to replace current text

Setting db variables to default values

Any db variable that has a default value can be reset to the default by deleting the variable entirely, then re-initializing the default database values as follows:

config delprop key prop
/etc/e-smith/events/actions/initialize-default-databases

Delete or reset a property value

To delete a property value or reset to empty issue one of the following commands

To reset to a empty value

db accounts setprop key prop ''

or To delete the property

db accounts delprop key prop


Warning.png Warning:
Database parameters are case sensitive so take great care when typing at the server shell because no error messages are given should you make a typo.