World: r3wp
[MySQL]
older newer | first last |
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 [709x2] | imo it is like this - when you have db created with old scheme, db will not automatically rebuild it for you using new method ... |
it is stated somewhere in docs iirc, you have to rebuild it .... the thing is, that length of old-password field is limited or something like that ... | |
Henrik 6-Jun-2006 [711] | pekr, would it work the other way around as well? I thought it was only initial authentication that was different. |
Pekr 6-Jun-2006 [712] | install from scratch |
Henrik 6-Jun-2006 [713] | I didn't do that, so it must have been done with new passwords. I could immediately overwrite the old style password with the new style and it worked immediately |
Pekr 6-Jun-2006 [714x2] | not sure, not having enough experience, just stating what I remember about it ... |
ok then ... | |
Henrik 6-Jun-2006 [716] | another thing I experienced: The server was moved to a new location. For some reason, everything went FUBAR, because DNS had not been set up. This caused connecting to the server to take about 60 seconds to get through. When I looked in the list of connections, it just says "logging in" for that long time. I connect to the server with an IP address, not a host name, so what's going on? |
older newer | first last |