MySQL Forums
Forum List  »  Router & Proxy

help on creating a valid COM_CHANGE_USER packet
Posted by: J S
Date: April 25, 2008 11:31AM

Hello,

I'm trying to create a valid COM_CHANGE_USER packet to send to the server but I have not been successful so far, I get the "unknow comand" message.

The format of the packet according to the documentation is:
1 byte for command itself in this case 0x11 in hex
n bytes for username
n bytes for password
n bytes for database
2 bytes fo charset

The username, password and database I can get them from the read_auth function with auth.username, auth.password and auth.default_db.
Now I need to put all this info together and create the packet.

Can anyone help?
Thanks

JS

Options: ReplyQuote


Subject
Views
Written By
Posted
help on creating a valid COM_CHANGE_USER packet
3089
J S
April 25, 2008 11:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.