How to use a Database from a SQL dump?
I have PEQ operational but I’m trying to use a SQL database dump from another server to work. I’ve tried to change my config file from using PEQ dB to the new dB but have had no luck.
I’d also be willing to overwrite the PEQ dB with the other dB flies but am not sure how to do this. I do have both DB listed in HeidiSql however am not sure how to use the other. Thank you for your help |
Go to the SQL file, open it up with notepad ++
There is likely code in there defaulting the update to be on the database the sql came from. When you save the table or set of tables (at least from heidisql) it notates the database it came from and writes it in the file... so now when you source the file, it comes up with error at row #### already exists etc. Change it to the new database name. Quote:
Then you went in created a 2nd database. Changed the config.xml file to go to the 2nd database, for some reason I could never get this to work except on a fresh computer that has never had a server on it before. (So, when I took a server from 1 computer to a laptop it worked fine, when I tried to make a 2nd server this way, it would never work unless I defaulted the database to the original database... which the 2nd server I wanted to have its own database). I just took the eq_emuserver.pl file to an empty folder and ran it. Follow the prompts, and it will work. Then just save that SQL file with the new database info at the top and source it in. Should duplicate that server (or whatever you sourced in). As far as using the other. You can select the database by opening that file. Is a > symbol next to the Database name. If it is opened it becomes a v symbol. That allows you to edit that database. As far as choosing in CMD prompt. You just type use database peq use database newpeq or whatever you named your database. If you export a database as a SQL file, you have to edit the file itself to point it to the database you want it to update. (Otherwise it tries to update the database you exported the SQL from--- the first portion of this post). |
All times are GMT -4. The time now is 11:57 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.