magicalwonders Posted November 14, 2008 Share Posted November 14, 2008 Hello, I've been carrying out a bit of testing with my new WHMCS installation. This has involved creating and deleting fictitious customer accounts to make sure everything works O.K. Is there anyway to reset Client ID, Order Numbers and Invoice numbers back to zero in order to commence accepting real clients and orders? The only reset info I could find in the manual refers to Invoice numbers, which suggests that I can't really do this. You should only enter this if you want to change the invoice starting numberThe number you enter here must be greater than the last generated invoice # which is 4 Am I looking at a completely fresh install of WHMCS to start the numbers from zero? Hope someone can advise. Many thanks, Myles 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted November 14, 2008 Share Posted November 14, 2008 trunc the files - the instructions are in the wiki 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 14, 2008 Share Posted November 14, 2008 http://wiki.whmcs.com/Maintenance 0 Quote Link to comment Share on other sites More sharing options...
magicalwonders Posted November 14, 2008 Author Share Posted November 14, 2008 Thanks folks, I just found the page using "search". Although I'm not sure which category "Maintenance" actually comes under! Thanks again. Appreciate the help. Myles 0 Quote Link to comment Share on other sites More sharing options...
magicalwonders Posted November 14, 2008 Author Share Posted November 14, 2008 O.K. I'm about to take the plunge and reset my database as per following instructions: You can empty all the tables that contain clients data by running the following SQL code on your database: TRUNCATE `tblaccounts` ; TRUNCATE `tblaffiliates` ; TRUNCATE `tblaffiliatesaccounts` ; TRUNCATE `tblcancelrequests` ; TRUNCATE `tblclients` ; TRUNCATE `tblcustomfields` ; TRUNCATE `tbldomains` ; TRUNCATE `tblemails` ; TRUNCATE `tblhosting` ; TRUNCATE `tblhostingaddons` ; TRUNCATE `tblhostingconfigoptions` ; TRUNCATE `tblinvoiceitems` ; TRUNCATE `tblinvoices` ; TRUNCATE `tblorders` ; TRUNCATE `tblticketlog` ; TRUNCATE `tblticketnotes` ; TRUNCATE `tblticketreplies` ; TRUNCATE `tbltickets` ; I'm a bit shaky on MySQL stuff though and not 100% confident I know what I'm doing. Is it just a matter of loging into PhpMyAdmin, selecting the correct database, then cutting and pasting above Truncates under the SQL tab. Run SQL query/queries on database webhost1_whmcsThen clicking "GO" Hope someone can confirm if this is the correct procedure. Many thanks, Myles 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 14, 2008 Share Posted November 14, 2008 Yep... that it without the top description line though. Only the TRUNCATE lines 0 Quote Link to comment Share on other sites More sharing options...
magicalwonders Posted November 14, 2008 Author Share Posted November 14, 2008 Excellent. Many thanks! Best wishes, Myles 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.