# Database server side

**URL:** <https://forum.phpvms.net/t/database-server-side/4723>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [May 16, 2011, 3:24pm UTC](https://forum.phpvms.net/t/database-server-side/4723 "2011-05-16T15:24:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bluemax](https://forum.phpvms.net/user_avatar/forum.phpvms.net/bluemax/32/87_2.png) [@Bluemax](https://forum.phpvms.net/u/Bluemax)\
**Post date:** [May 16, 2011, 3:24pm UTC](https://forum.phpvms.net/t/database-server-side/4723/1 "2011-05-16T15:24:46Z")

</div>

Gents a question. From the server side I exported my phpvms\_(my info)airport database (From table) to have as a backup as I deleted some airports. Had no problem exporting and I did additional deleting airports and decided to import it back into the system via myphpadmin, but everytime I attempt to import it, I get an error message telling me the phpvms\_(my info)airports already exist. What am I doing wrong. The phpvms\_airports table is setup when you install phpvms?

---

<div class="post-metadata">

**Author:** ![joeri](https://forum.phpvms.net/user_avatar/forum.phpvms.net/joeri/32/30_2.png) [@joeri](https://forum.phpvms.net/u/joeri)\
**Post date:** [May 16, 2011, 3:26pm UTC](https://forum.phpvms.net/t/database-server-side/4723/2 "2011-05-16T15:26:14Z")

</div>

that table needs to be empty from the moment it comes to a airport thats in there its will stop

---

<div class="post-metadata">

**Author:** ![Bluemax](https://forum.phpvms.net/user_avatar/forum.phpvms.net/bluemax/32/87_2.png) [@Bluemax](https://forum.phpvms.net/u/Bluemax)\
**Post date:** [May 16, 2011, 6:32pm UTC](https://forum.phpvms.net/t/database-server-side/4723/3 "2011-05-16T18:32:31Z")

</div>

> that table needs to be empty from the moment it comes to a airport thats in there its will stop

Not sure I’m following you…are you saying I have to delete any airports that already exist in the table before I can import a revised table…How does one upload the airport data sql that is present on the forum for download. Am I to understand that the phpvms\_airport table needs to complete void of airports before you can import airports?

---

<div class="post-metadata">

**Author:** ![joeri](https://forum.phpvms.net/user_avatar/forum.phpvms.net/joeri/32/30_2.png) [@joeri](https://forum.phpvms.net/u/joeri)\
**Post date:** [May 16, 2011, 7:38pm UTC](https://forum.phpvms.net/t/database-server-side/4723/4 "2011-05-16T19:38:41Z")

</div>

> Not sure I’m following you…are you saying I have to delete any airports that already exist in the table before I can import a revised table…How does one upload the airport data sql that is present on the forum for download. Am I to understand that the phpvms\_airport table needs to complete void of airports before you can import airports?

yes the airports table needs to be complety empty

---

<div class="post-metadata">

**Author:** ![Bluemax](https://forum.phpvms.net/user_avatar/forum.phpvms.net/bluemax/32/87_2.png) [@Bluemax](https://forum.phpvms.net/u/Bluemax)\
**Post date:** [May 18, 2011, 4:42pm UTC](https://forum.phpvms.net/t/database-server-side/4723/5 "2011-05-18T16:42:14Z")

</div>

> You may have to delete the table all together. The backup maybe be setup to create the table and fill it. To make sure you do not lose anything I would change the current table name to something like phpvms\_airports\_BACKUP and then run the back up sql. That way you still have the original and can always rename it back. I never delete any tables until absolutely sure that the new one is working correctly (a few days usually gives me the confidence to get rid of it)

Having first dumped the airport data leaving the table empty, I once again attempted to reload the exported airport database. Again it said phpvmsXXXX.Phpvms\_XXXXairports already exist. I then dumped the table and when I attempted to upload it said the phpvmsXXXX.Phpvms\_XXXXairports doesn’t exist. But it did reinstall the table void of the airport data. What am I doing wrong. I followed all the above instruction. What needs to be done to the sql file before I attempt to upload it. I’m sure you people do this all the time. The forum needs a live chat line or something.
