Help MYSQL
#1

Dear Forum member...

I have a problem my script has MYSQL and everything is created on the DB
but i cant see the user accounts my SQL says it has no key and it has something to do with this:

Код:
format(query, sizeof(query), "SELECT `user` FROM `accounts` WHERE user = '%s' AND password = md5('%s')", Name(playerid), pass);
If someone can help me out it would be great
Reply
#2

Could someone please help me its a lil urgent,

Thanks
Reply
#3

The query bellow looks ok.
Reply
#4

strange it may be on the webmin mysql side but thanks
Reply
#5

May this could help also what im seeing.

Reply
#6

You need to create a Primary Key attribute on the table for each entry.
Reply
#7

Thanks for helping guys, had a bit to figure it out but i got it working ^^

[SOLVED]
Reply
#8

Will you post how you solved it so others in the future can refer to this?
Reply
#9

No password salting, not good
Reply
#10

Quote:
Originally Posted by Misiur
Посмотреть сообщение
No password salting, not good
Plus he's using MD5. I know the problem is fixed but I strongly urge you to use a much better hashing method other than MD5, Whrilpool or SHA512 are both good even without salting.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)