Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2005
Posts: 4
Joined: May 2005
Posts: 4
We have a table that gets a lot of activity and has about 4,500 records. I update it by using PhpMyAdmin to empty the table and then replace it with a textfile. A few days ago, as soon as I emptied the table the server went as screwy as I've ever seen it. We would reboot, and it would still go crazy - not returning queries, not accepting passwords, etc. After 2 days, we were able to load the textfile and the server has been fine since.

Our tech people think the table was receiving queries and since there was nothing in it, some nasty loop situation occurred.

Is there a way to update a table with entirely new data without dropping it first? Any suggestion on how to solve this problem are appreciated.

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Joined: May 2001
Posts: 550
Did you drop it or only delete the content?

To delete the table content: DELETE FROM "tablename"

Then insert whatever you wish to insert.

To insert data into a table that already contains potentially the same data:

REPLACE INTO "tablename"

Joined: May 2005
Posts: 4
Joined: May 2005
Posts: 4
That little checkbox allowing me to overwrite the data did the trick. Thanks for your help.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
Visit us on Facebook
Member Spotlight
Posts: 190
Joined: June 2000
Forum Statistics
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,832
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 81
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2023 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)