Jump to content
aelius

Forum privacy

Recommended Posts

Ori e privacy ori nu mai e ?


mysql> use rstcenter;

Database changed
mysql> update post set ipaddress ='127.0.0.1';
Query OK, 354914 rows affected (9.30 sec)
Rows matched: 355196 Changed: 354914 Warnings: 0

mysql> update adminlog set ipaddress ='127.0.0.1';
Query OK, 54802 rows affected (0.13 sec)
Rows matched: 54852 Changed: 54802 Warnings: 0

mysql> update moderatorlog set ipaddress ='127.0.0.1';
Query OK, 792 rows affected (0.01 sec)
Rows matched: 792 Changed: 792 Warnings: 0

mysql> update searchlog set ipaddress ='127.0.0.1';
Query OK, 283 rows affected (0.00 sec)
Rows matched: 283 Changed: 283 Warnings: 0

mysql> update threadrate set ipaddress ='127.0.0.1';
Query OK, 2341 rows affected (0.00 sec)
Rows matched: 2347 Changed: 2341 Warnings: 0

Adresa ip de la toate posturile de pe forum a fost schimbata in 127.0.0.1 (la toti utilizatorii)

Edited by aelius
Link to comment
Share on other sites

Query OK, 354914 rows affected (9.30 sec)

c? bine se mi?c? ! :))

E MyISAM, avand in vedere ca se face locking la greu pe tabela atunci cand este accesata (spre diferenta de InnoDB), 9.3 sec query time pe 354.914 inregistrari, este destul de fast.

PS:


Threads: 14 Questions: 258597548 Slow queries: 8810 Opens: 18144 Flush tables: 1 Open tables: 14626 Queries per second avg: 664.211

Edited by aelius
Link to comment
Share on other sites

Asta da privacy! Trebuia sa faci asa:

mysql> update `table` set ipaddress ='127.0.0.1' WHERE username != 'empathy' /*_|_*/;

Oricum nu stiu structura tabelelor (presupun ca e `uid` in loc de `username`). Era doar o chestie `Anti-Polonic`.

Edited by totti93
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
Reply to this topic...

×   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...