Jump to content
  • 0

DB Cleaner


Dissidia

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

A script that can clean never logged in account?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

A Simple SQL Query Will Do for deleting an account that hasnt been log in yet

DELETE FROM `login` WHERE `logincount` = 0;

 

Edited by crazyarashi
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1583
  • Reputation:   244
  • Joined:  08/03/12
  • Last Seen:  

DELETE FROM login
WHERE logincount=0;

But I didnt recommend you delete any accounts

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

7 minutes ago, Chaos92 said:

DELETE FROM login
WHERE logincount=0;

But I didnt recommend you delete any accounts

there is no problem deleting accounts that didn't login even once

no char or items connected to the account

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1583
  • Reputation:   244
  • Joined:  08/03/12
  • Last Seen:  

1 minute ago, sader1992 said:

there is no problem deleting accounts that didn't login even once

no char or items connected to the account

login from fluxcp does it count ?
if any account related database for example voteforpoints, freebies, or any other fluxcp addon?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

1 minute ago, Chaos92 said:

login from fluxcp does it count ?
if any account related database for example voteforpoints, freebies, or any other fluxcp addon?

i am not good in web development but let's say it's true

he can also delete all the variables for that account too

and also flux wont give the account id to a new account it <<(i don't know what but that tested in every server i made[not sure if flux side or rathena side])

so even if he didn't delete the variables no one will get them if they made new account cuz they can't get the same id (unless it added in the database manualy)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1583
  • Reputation:   244
  • Joined:  08/03/12
  • Last Seen:  

Just now, sader1992 said:

i am not good in web development but let's say it's true

he can also delete all the variables for that account too

and also flux wont give the account id to a new account it <<(i don't know what but that tested in every server i made[not sure if flux side or rathena side])

so even if he didn't delete the variables no one will get them if they made new account cuz they can't get the same id (unless it added in the database manualy)

yeah its true.. but u will have redundancy of data if u didnt check thoroughly  for any other related data to login table. for sure it should work :)
im just saying, I didnt recommended that.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

Thank you guys, I'll try it. I will also look for the flux that needs to delete.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...