?
Solved

Mysql database - RESET or FLUSH command help, urgent question

Posted on 2004-04-24
4
Medium Priority
?
402 Views
Last Modified: 2012-08-13
I have an urgent question.
How do I reset the data in a Mysql database table. I need to reset the values of a certain field to Zero. I have a PTR site and need the clicks reset to zero. Can anyone help? I think I should use the Reset or Flush command but I'm not sure how to do this correctly.

Thanks in advance!
Pat
0
Comment
Question by:plovell66
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Accepted Solution

by:
LordSilk earned 2000 total points
ID: 10912736
Hi,

Why don't you just update the field in the table?

update <tablename>
set <fieldname> = 0

This will set all values of the column <fieldname>  in the table <tablename> to zero.
For more info on the update statement : http://dev.mysql.com/doc/mysql/en/UPDATE.html

The Flush and Reset commands are used to clear the cache of the MySQL server, not the data...



0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question