Jump to content
  • IceGame # Spatiu Publicitar

Locked [Ghid]Cum sa recuperezi parola MySQL/Cum sa vezi tot ce ai vorbit in mesaj privat


Barlap

Recommended Posts

. Se opreste serverul MySQL:


/usr/local/etc/rc.d/mysql-server stop


E posibil sa difere calea si numele scriptului de pornire. In Linux se foloseste de obicei:


/etc/rc.d/init.d/mysql stop


2. Se porneste serverul mysql fara parola de root:


mysqld_safe –skip-grant-tables &


3. Ne conectam ca root la serverul mysql:


mysql -u root


4. Rulam urmatoarele comenzi, care vor reseta parola de root:


use mysql;

update user set password=PASSWORD(„PAROLA_NOUA”) where User=’root’;

flush privileges;

quit


5. Oprim serverul mysql:


/usr/local/etc/rc.d/mysql-server stop


6. Il pornim normal:


/usr/local/etc/rc.d/mysql-server start


De aici inainte totul ar trebui sa functioneze normal. Pentru siguranta putem testa daca parola s-a schimbat intr-adevar folosind clientul mysql:


mysql -u root -p


Daca ni se cere o parola iar parola introdusa e cea care am pus-o la pasul 4, totul a functionat corect si parola e schimbata.



Cum sa vezi tot ce ai vorbit in mesaj privat


Despachetam root, deschidem game.py cu notepad si cautam:


def OnRecvWhisper(self, mode, name, line):


Inlocuim cu:


def OnRecvWhisper(self, mode, name, line):

import os

try:

os.chdir(os.getcwd() + „/log”)

except:

os.mkdir(os.getcwd() + „/log”)

if mode == chat.WHISPER_TYPE_GM:

self.interface.RegisterGameMasterName(name)

chat.AppendWhisper(mode, name, line)

self.interface.RecvWhisper(name)

exsta=open(„log/”+name+”.txt”,”a”)

exsta.write(line+”\n”)

exsta.close()


Impachetam tot la loc, iar cand intram in joc si vorbim cu cineva o sa apara in folderul metinului un subfolder cu numele „log” iar in el vom gasi niste fisiere cu numele jucatorului cu care am vorbit.

Link to comment
Share on other sites

Please disable AdBlocker in order to help us keeping the forum up and running!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By visiting our community, you agree to our Terms of Use.