Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. C:>mysql -h example.com -P 3306 -D prod_rcadb -u username -p
  2. Enter password: **********
  3. ERROR 2027 (HY000): Malformed packet
  4.  
  5. C:>mysqladmin -h example.com -P 3306 -u username -p version
  6. Enter password: **********
  7. mysqladmin: connect to server at '10.106.24.79' failed
  8. error: 'Malformed packet'
  9.  
  10. 1 2016-04-14 11:18:48.910690 0.000000 137.69.150.80 10.106.24.79 TCP 66 51157→3306 [SYN] Seq=0 Win=8192 Len=0 MSS=1428 WS=256 SACK_PERM=1 8192
  11. 2 2016-04-14 11:18:49.019893 0.109203 10.106.24.79 137.69.150.80 TCP 66 3306→51157 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=256 5840
  12. 3 2016-04-14 11:18:49.019893 0.000000 137.69.150.80 10.106.24.79 TCP 54 51157→3306 [ACK] Seq=1 Ack=1 Win=65536 Len=0 256
  13.  
  14. 4 2016-04-14 11:18:49.144696 0.124803 10.106.24.79 137.69.150.80 MySQL 110 Server Greeting proto=10 version=5.0.95 23
  15. 5 2016-04-14 11:18:49.144696 0.000000 137.69.150.80 10.106.24.79 MySQL 119 Login Request user=bigdata 256<br>
  16. 6 2016-04-14 11:18:49.144696 0.000000 10.106.24.79 137.69.150.80 TCP 60 3306→51157 [ACK] Seq=57 Ack=66 Win=5888 Len=0 23
  17. 7 2016-04-14 11:18:49.316301 0.171605 10.106.24.79 137.69.150.80 MySQL 60 Response 23
  18.  
  19. Server Capabilities: 0xa22c
  20. .... .... .... ...0 = Long Password: Not set
  21. .... .... .... ..0. = Found Rows: Not set
  22. .... .... .... .1.. = Long Column Flags: Set
  23. .... .... .... 1... = Connect With Database: Set
  24. .... .... ...0 .... = Don't Allow database.table.column: Not set
  25. .... .... ..1. .... = Can use compression protocol: Set
  26. .... .... .0.. .... = ODBC Client: Not set
  27. .... .... 0... .... = Can Use LOAD DATA LOCAL: Not set
  28. .... ...0 .... .... = Ignore Spaces before '(': Not set
  29. .... ..1. .... .... = Speaks 4.1 protocol (new flag): Set
  30. .... .0.. .... .... = Interactive Client: Not set
  31. .... 0... .... .... = Switch to SSL after handshake: Not set
  32. ...0 .... .... .... = Ignore sigpipes: Not set
  33. ..1. .... .... .... = Knows about transactions: Set
  34. .0.. .... .... .... = Speaks 4.1 protocol (old flag): Not set
  35. 1... .... .... .... = Can do 4.1 authentication: Set
  36. Server Language: latin1 COLLATE latin1_swedish_ci (8)
  37.  
  38. .... .... .... ...1 = Long Password: Set
  39. .... .... .... ..0. = Found Rows: Not set
  40. .... .... .... .1.. = Long Column Flags: Set
  41. .... .... .... 0... = Connect With Database: Not set
  42. .... .... ...0 .... = Don't Allow database.table.column: Not set
  43. .... .... ..0. .... = Can use compression protocol: Not set
  44. .... .... .0.. .... = ODBC Client: Not set
  45. .... .... 1... .... = Can Use LOAD DATA LOCAL: Set
  46. .... ...0 .... .... = Ignore Spaces before '(': Not set
  47. .... ..1. .... .... = Speaks 4.1 protocol (new flag): Set
  48. .... .0.. .... .... = Interactive Client: Not set
  49. .... 0... .... .... = Switch to SSL after handshake: Not set
  50. ...0 .... .... .... = Ignore sigpipes: Not set
  51. ..1. .... .... .... = Knows about transactions: Set
  52. .0.. .... .... .... = Speaks 4.1 protocol (old flag): Not set
  53. 1... .... .... .... = Can do 4.1 authentication: Set
  54. Extended Client Capabilities: 0x81be
  55. .... .... .... ...0 = Multiple statements: Not set
  56. .... .... .... ..1. = Multiple results: Set
  57. .... .... .... .1.. = PS Multiple results: Set
  58. .... .... .... 1... = Plugin Auth: Set
  59. .... .... ...1 .... = Connect attrs: Set
  60. .... .... ..1. .... = Plugin Auth LENENC Client Data: Set
  61. .... .... 1... .... = Session variable tracking: Set
  62. 1000 0001 .0.. .... = Unused: 0x0204
  63.  
  64. Packet Length: 1
  65. Packet Number: 2
  66. EOF marker: 254
  67.  
  68. 8 2016-04-14 11:18:49.316301 0.000000 137.69.150.80 10.106.24.79 TCP 54 51157→3306 [FIN, ACK] Seq=66 Ack=62 Win=65536 Len=0 256
  69. 9 2016-04-14 11:18:49.332901 0.016600 10.106.24.79 137.69.150.80 TCP 60 3306→51157 [ACK] Seq=62 Ack=67 Win=5888 Len=0 23
  70. 10 2016-04-14 11:18:49.391904 0.059003 10.106.24.79 137.69.150.80 TCP 60 3306→51157 [FIN, ACK] Seq=62 Ack=67 Win=5888 Len=0 23
  71. 11 2016-04-14 11:18:49.391904 0.000000 137.69.150.80 10.106.24.79 TCP 54 51157→3306 [ACK] Seq=67 Ack=63 Win=65536 Len=0 256
  72.  
  73. Packet Length: 7
  74. Packet Number: 2
  75. Affected Rows: 0
  76. Server Status: 0x0002
  77. .... .... .... ...0 = In transaction: Not set
  78. .... .... .... ..1. = AUTO_COMMIT: Set
  79. .... .... .... .0.. = More results: Not set
  80. .... .... .... 0... = Multi query - more resultsets: Not set
  81. .... .... ...0 .... = Bad index used: Not set
  82. .... .... ..0. .... = No index used: Not set
  83. .... .... .0.. .... = Cursor exists: Not set
  84. .... .... 0... .... = Last row sent: Not set
  85. .... ...0 .... .... = database dropped: Not set
  86. .... ..0. .... .... = No backslash escapes: Not set
  87. .... .0.. .... .... = Session state changed: Not set
  88. .... 0... .... .... = Query was slow: Not set
  89. ...0 .... .... .... = PS Out Params: Not set
  90.  
  91. Payload
  92. 1 [fe]
  93. Fields
  94. status (1) -- 0xfe
  95. Returns
  96. Protocol::AuthSwitchResponse with old password hash
  97. Example
  98. 01 00 00 02 fe
  99.  
  100. B.5.2.4 Client does not support authentication protocol
  101.  
  102. The current implementation of the authentication protocol uses a password hashing algorithm that is incompatible with that used by older (pre-4.1) clients. Attempts to connect to a 4.1 or newer server with an older client may fail with the following message:
  103.  
  104. shell> mysql
  105. Client does not support authentication protocol requested
  106. by server; consider upgrading MySQL client
  107.  
  108. To deal with this problem, the preferred solution is to upgrade all client programs to use a 4.1.1 or newer client library. If that is not possible, use one of the following approaches:
  109.  
  110. To connect to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.
  111.  
  112. Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function. As of MySQL 5.6.6, it is also necessary to first ensure that the authentication plugin for the account is mysql_old_password:
  113.  
  114. mysql> UPDATE mysql.user SET plugin = 'mysql_old_password'
  115. mysql> WHERE User = 'some_user' AND Host = 'some_host';
  116. mysql> FLUSH PRIVILEGES;
  117. mysql> SET PASSWORD FOR
  118. -> 'some_user'@'some_host' = OLD_PASSWORD('new_password');
  119.  
  120. SET PASSWORD FOR 'nagios'@'10.10.10.201' = 'xxxx';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement