r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[MySQL]

Dockimbel
8-May-2006
[660x2]
This one should work : http://softinnov.net/tmp/mysql-protocol.r
still beta, need some more testing to make it 1.0
Henrik
3-Jun-2006
[662]
the link is dead
Dockimbel
3-Jun-2006
[663]
http://softinnov.org/tmp/mysql-protocol.r
Henrik
3-Jun-2006
[664]
was the bad handshake problem ever solved? I'm getting it here.
Dockimbel
3-Jun-2006
[665]
Workaround found for v4+ servers version, still testing for v3.x 
 versions.
Henrik
3-Jun-2006
[666]
so no hope for 5.0 just yet?
Dockimbel
3-Jun-2006
[667]
It should work correctly for 5.0.
Henrik
3-Jun-2006
[668]
would this be with support for old passwords enabled?
Dockimbel
3-Jun-2006
[669x2]
The driver detects the server version, if it is 4 or above, it use 
the new passswords, if it is 3.x, it uses old passwords.
If you want v5 with old password, I have to provide an option to 
allow that.
Henrik
3-Jun-2006
[671]
I had old passwords enabled because I thought it didn't support that 
:-)
Dockimbel
3-Jun-2006
[672]
:-)
Henrik
3-Jun-2006
[673]
but I still get the bad handshake
Dockimbel
3-Jun-2006
[674]
Which server version ? How password was created ?
Henrik
3-Jun-2006
[675x2]
server 5.0.21
I used mysql-admin to create the user. I don't know which method 
it uses
Dockimbel
3-Jun-2006
[677]
Thanks, I'll try with 5.0.21 + mysql-admin.
Henrik
3-Jun-2006
[678x4]
looks like mysql-admin doesn't use PASSWORD() to create passwords
that's the problem
works when I set it with PASSWORD()
hope that helps a bit
Dockimbel
3-Jun-2006
[682x2]
Sure it helps, thanks!
I'll try to release an updated version this weekend that fix such 
case.
Henrik
3-Jun-2006
[684]
excellent
Will
3-Jun-2006
[685]
dumb question.. is this a valid query?

select i1.id,i1.ip,i1.session from isa i1,isa i2 where i1.ip=i2.ip 
and i1.session<>i2.session order by i1.ip
about 70'000 records in isa
running this query seams to crash/block the mysql server..
Allen
3-Jun-2006
[686x2]
not a well constructed query. unless my mental parser isn't working. 
You are asking for each and every row where it doesn't match the 
current row... now I don't think that is your true intent ...
that would be something like 70,000 * 70,000 results
Tomc
4-Jun-2006
[688x2]
valid but not like useful , (or likely to finish soon)
stating what you actually want to accomplish could help
Dockimbel
6-Jun-2006
[690]
Henrik: Can yo give me the mysqladmin command line you're using to 
create a new user ?
Henrik
6-Jun-2006
[691x2]
mysql-admin is a GUI client.
I'll see if I can find some docs on it. it's the client you can download 
from mysql.com
Dockimbel
6-Jun-2006
[693]
Ok, so you mean MySQL Administrator (and not the mysqladmin.exe command 
line tool).
Henrik
6-Jun-2006
[694x2]
it's called "mysql-admin" under linux. looks like your name is correct.
http://dev.mysql.com/downloads/administrator/1.1.html<--- that one
Dockimbel
6-Jun-2006
[696]
Tried creating a user using that tool under WinXP and OSX, then I 
tried connecting with mysql-protocol.r => no problem...
Henrik
6-Jun-2006
[697]
if you look in your user table, what length is the encrypted password?
Dockimbel
6-Jun-2006
[698]
*63D85DCA15EAFFC58C908FD2FAE50CCBC60C4EA2
Henrik
6-Jun-2006
[699x3]
ok, mine are only about 16 chars long
so it's simply a different encryption scheme for some reason
when I created it from the console, I got a properly encrypted password 
like yours
Dockimbel
6-Jun-2006
[702]
16 chars are old passwords IIRC
Henrik
6-Jun-2006
[703x2]
I think the client is confused about that. The error log for it says 
that old passwords are not supported for 5.0. I initially tried to 
turn old passwords on, because I didn't think mysql-protocol.r supported 
newer ones.
then I tried to turn them off again through the GUI and it didn't 
change.
Dockimbel
6-Jun-2006
[705]
Could you activate : trace/net on before using mysql:// and show 
me here the server information retrieved by the driver.
Henrik
6-Jun-2006
[706]
that'll take a short while, the PC that the mysql server is on has 
been taken down. :-)
Dockimbel
6-Jun-2006
[707]
Ok, I see...no problem, just post it here when you'll have the log.
Henrik
6-Jun-2006
[708]
setting it up now (need to do it anyway)
Pekr
6-Jun-2006
[709]
imo it is like this - when you have db created with old scheme, db 
will not automatically rebuild it for you using new method ...