Thanks Sergey!<br><br><div class="gmail_quote">On Sat, Mar 2, 2013 at 5:11 PM, Sergey Pashkov <span dir="ltr"><<a href="mailto:sergey_pashkov@valentina-db.com" target="_blank">sergey_pashkov@valentina-db.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, Kay,<br>
<div class="im"><br>
> So my question remains. The reason I'm not using the new format is because back when I upgraded mySQL Rev could not handle the new password format. I'm speaking to mySQL with LiveCode. So I need to know if anyone knows if LiveCoded has been upgraded so it can handle new mySQL passwords, if it hasn't then I need to stick with old passwords.<br>
><br>
> Although I access mySQL via LC I occassionally want to look at the raw tables. Currently I use Navicat, which has no problem with the old mySQL passwords. Now that Valentia Studio 5.0 is free I thought I'd use Studio instead.<br>
<br>
<br>
</div>mySQL is able to support both new password and old password formats at once, but for different users.<br>
<br>
To use it, it is required to switch mySQL to generate new passwords by default,<br>
turn off or remove server option "old-passwords" in [mysqld] section of my.cnf:<br>
old-passwords=0<br>
<br>
This option doesn't change anything for existing users, it affects only new or changed users,<br>
in other words, users with old password format will connect without any problem.<br>
<br>
Now you can create a new user, and PASSWORD function will generate password in a new schema, Valentina Studio will connect to the mySQL.<br>
<br>
To support older client (which is used by LiveCode, for example), we can generate passwords in an old style, but only for specific users:<br>
SET PASSWORD FOR 'livecode_user'@'some_host' = OLD_PASSWORD('newpwd');<br>
<br>
Hashes in an old format have 16 bytes, in a new one - 41. It is easy to check, which format is used:<br>
SELECT Host, User, Password FROM mysql.user WHERE LENGTH(Password) = 16<br>
<br>
Refer to original documentation for details, please:<br>
<a href="https://dev.mysql.com/doc/refman/5.5/en/old-client.html" target="_blank">https://dev.mysql.com/doc/refman/5.5/en/old-client.html</a><br>
<a href="https://dev.mysql.com/doc/refman/5.5/en/password-hashing.html" target="_blank">https://dev.mysql.com/doc/refman/5.5/en/password-hashing.html</a><br>
<br>
<br>
Best regards,<br>
Sergey Pashkov<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Valentina mailing list<br>
<a href="mailto:Valentina@lists.macserve.net">Valentina@lists.macserve.net</a><br>
<a href="http://lists.macserve.net/mailman/listinfo/valentina" target="_blank">http://lists.macserve.net/mailman/listinfo/valentina</a><br>
</div></div></blockquote></div><br>