简体   繁体   中英

database records missing randomly in mysql

I am using joomla as CMS I have a system of creating users from the back end and give those login information to the users to log in our site we are following this system as we only serve a selected group of people. but I have noticed that some records were missing randomly in our database we are using phpmyadmin and database MySQL ,I have noticed the issue when some users complained that they couldn't login on our site with the credentials provided by us .When I checked the database table I found out that some records were missing randomly .I am totally puzzled and helpless please help me.

Records do not under any normal circumstance disappear from databases spontaneously. Some specific actions must cause this.

First, carefully analyse your reasons for thinking the database ever had the record.

You have a process by which data is created. Suppose the code went:

 Generate username/password
 Print it out (and hence pass to user)
 Insert into database

and that last step failed, would you ever know? Can you run a quick query across the database when you believe the record should be there to check that it is?

If instead your code goes

 Generate username
 Insert into database
 Read from database
 Print it out

Then you have some evidence that the record did exist, now you need to track down when the deletion occurred. Somewhere there must be a delete running.

You need to get very analytic, gather evidence.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM