Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
mysqldump --no-create-info
esampark wrote:he means to use the command with this option
- Code: Select all
mysqldump --no-create-info
this wont create the drop table if exists sql statement in your output file , meaning your new table structure wont be alteredd , if it is changed from the older version , its the safest method.
if you have already created the sql file, you can use any text editor to edit it [given its not too large] and just delete the sql statements regarding the drop and create of tables , and just keep the insert queries.
mysqldump asterisk > /root/full_asterisk_database.sql
mysql asterisk < /root/filename.sql
williamconley wrote:1) Back up the new server's sql data before you begin. Full asterisk database.
- Code: Select all
mysqldump asterisk > /root/full_asterisk_database.sql
(May require -pPaSwWorD if root has a password)
2) Restore from any .sql file with this:
- Code: Select all
mysql asterisk < /root/filename.sql
(May require -pPaSwWorD if root has a password)
Leckbush wrote:But I dont have the old server. Its been reformatted already? Is there any way I can restore this leads? Im so sorry
mysql asterisk < /root/filename.sql
mysql asterisk_temp < /root/filename.sql
mysqldump --no-create-info --complete-insert --no-create-db asterisk_temp vicidial_list > vicidial_list.sql
mysqldump --no-create-info --complete-insert --no-create-db asterisk_temp vicidial_lists > vicidial_lists.sql
mysql asterisk < vicidial_list.sql
mysql asterisk < vicidial_lists.sql
esampark wrote:after this , transfer these two files , to the root folder of your new vicidial 8 server , and restore using following commands :
- Code: Select all
mysql asterisk < vicidial_list.sql
mysql asterisk < vicidial_lists.sql
and that should do it.
after you have verified everything is working fine , you can remove the temporarily created database , or might even just keep it , your wish !
mysql asterisk < vicidial_lists.sql
delete from vicidial_lists where list_id in ('998','999');
mysql asterisk
Users browsing this forum: Google [Bot] and 95 guests