You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

327 lines
20 KiB

15 years ago
  1. CREATE DATABASE test_user_db;
  2. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  3. user plugin authentication_string
  4. ========== test 1.1 ======================================================
  5. CREATE USER plug IDENTIFIED WITH test_plugin_server;
  6. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  7. user plugin authentication_string
  8. plug test_plugin_server
  9. DROP USER plug;
  10. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server;
  11. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  12. user plugin authentication_string
  13. plug test_plugin_server
  14. REVOKE ALL PRIVILEGES ON test_user_db.* FROM plug;
  15. DROP USER plug;
  16. CREATE USER plug IDENTIFIED WITH 'test_plugin_server';
  17. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  18. user plugin authentication_string
  19. plug test_plugin_server
  20. DROP USER plug;
  21. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server';
  22. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  23. user plugin authentication_string
  24. plug test_plugin_server
  25. REVOKE ALL PRIVILEGES ON test_user_db.* FROM plug;
  26. DROP USER plug;
  27. CREATE USER plug IDENTIFIED WITH test_plugin_server AS '';
  28. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  29. user plugin authentication_string
  30. plug test_plugin_server
  31. DROP USER plug;
  32. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS '';
  33. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  34. user plugin authentication_string
  35. plug test_plugin_server
  36. REVOKE ALL PRIVILEGES ON test_user_db.* FROM plug;
  37. DROP USER plug;
  38. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS ;
  39. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
  40. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS;
  41. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
  42. CREATE USER plug IDENTIFIED WITH test_plugin_server AS plug_dest;
  43. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'plug_dest' at line 1
  44. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS plug_dest;
  45. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'plug_dest' at line 1
  46. ========== test 1.1 syntax errors ========================================
  47. CREATE USER plug IDENTIFIED WITH AS plug_dest;
  48. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS plug_dest' at line 1
  49. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH AS plug_dest;
  50. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS plug_dest' at line 1
  51. CREATE USER plug IDENTIFIED WITH;
  52. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
  53. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH;
  54. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
  55. CREATE USER plug IDENTIFIED AS '';
  56. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS ''' at line 1
  57. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED AS '';
  58. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS ''' at line 1
  59. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' IDENTIFIED WITH 'test_plugin_server';
  60. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server'' at line 1
  61. GRANT ALL PRIVILEGES ON test_user_db.* TO plug
  62. IDENTIFIED WITH 'test_plugin_server' IDENTIFIED WITH 'test_plugin_server';
  63. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server'' at line 2
  64. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS '' AS 'plug_dest';
  65. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS 'plug_dest'' at line 1
  66. GRANT ALL PRIVILEGES ON test_user_db.* TO plug AS '' AS 'plug_dest';
  67. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS '' AS 'plug_dest'' at line 1
  68. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS ''
  69. IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  70. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED WITH test_plugin_server AS 'plug_dest'' at line 2
  71. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS ''
  72. IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  73. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED WITH test_plugin_server AS 'plug_dest'' at line 2
  74. CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd'
  75. IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  76. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'' at line 2
  77. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED BY 'plug_dest_passwd'
  78. IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  79. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'' at line 2
  80. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
  81. USER plug_dest IDENTIFIED by 'plug_dest_pwd';
  82. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USER plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
  83. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
  84. USER plug_dest IDENTIFIED by 'plug_dest_pwd';
  85. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USER plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
  86. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
  87. plug_dest IDENTIFIED by 'plug_dest_pwd';
  88. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
  89. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
  90. plug_dest IDENTIFIED by 'plug_dest_pwd';
  91. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'plug_dest IDENTIFIED by 'plug_dest_pwd'' at line 2
  92. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
  93. IDENTIFIED by 'plug_dest_pwd';
  94. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED by 'plug_dest_pwd'' at line 2
  95. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'
  96. IDENTIFIED by 'plug_dest_pwd';
  97. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED by 'plug_dest_pwd'' at line 2
  98. ========== test 1.1 combinations ==========================
  99. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  100. ========== test 1.1.1.6/1.1.2.5 ============================
  101. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  102. user plugin authentication_string
  103. plug test_plugin_server plug_dest
  104. CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
  105. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  106. user plugin authentication_string
  107. plug test_plugin_server plug_dest
  108. plug_dest
  109. DROP USER plug, plug_dest;
  110. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  111. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  112. user plugin authentication_string
  113. plug test_plugin_server plug_dest
  114. DROP USER plug;
  115. CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
  116. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  117. user plugin authentication_string
  118. plug_dest
  119. DROP USER plug_dest;
  120. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  121. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  122. user plugin authentication_string
  123. plug test_plugin_server plug_dest
  124. CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
  125. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  126. user plugin authentication_string
  127. plug test_plugin_server plug_dest
  128. plug_dest
  129. DROP USER plug, plug_dest;
  130. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  131. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  132. user plugin authentication_string
  133. plug test_plugin_server plug_dest
  134. DROP USER plug;
  135. CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
  136. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  137. user plugin authentication_string
  138. plug_dest
  139. DROP USER plug_dest;
  140. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  141. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  142. user plugin authentication_string
  143. plug test_plugin_server plug_dest
  144. GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_dest_passwd';
  145. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  146. user plugin authentication_string
  147. plug test_plugin_server plug_dest
  148. plug_dest
  149. DROP USER plug, plug_dest;
  150. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  151. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  152. user plugin authentication_string
  153. plug test_plugin_server plug_dest
  154. DROP USER plug;
  155. GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_dest_passwd';
  156. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  157. user plugin authentication_string
  158. plug_dest
  159. DROP USER plug_dest;
  160. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  161. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  162. ERROR HY000: GRANT with IDENTIFIED WITH is illegal because the user plug already exists
  163. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH 'test_plugin_server';
  164. ERROR HY000: GRANT with IDENTIFIED WITH is illegal because the user plug already exists
  165. DROP USER plug;
  166. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  167. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  168. ERROR HY000: Operation CREATE USER failed for 'plug'@'%'
  169. CREATE USER plug IDENTIFIED WITH 'test_plugin_server';
  170. ERROR HY000: Operation CREATE USER failed for 'plug'@'%'
  171. DROP USER plug;
  172. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  173. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  174. user plugin authentication_string password
  175. plug test_plugin_server plug_dest
  176. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED BY 'plug_dest_passwd';
  177. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  178. user plugin authentication_string password
  179. plug test_plugin_server plug_dest *939AEE68989794C0F408277411C26055CDF41119
  180. DROP USER plug;
  181. GRANT ALL PRIVILEGES ON test_user_db.* TO plug IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  182. CREATE USER plug IDENTIFIED BY 'plug_dest_passwd';
  183. ERROR HY000: Operation CREATE USER failed for 'plug'@'%'
  184. DROP USER plug;
  185. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  186. CREATE USER plug_dest IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  187. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  188. user plugin authentication_string password
  189. plug test_plugin_server plug_dest
  190. plug_dest test_plugin_server plug_dest
  191. DROP USER plug,plug_dest;
  192. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest';
  193. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  194. user plugin authentication_string password
  195. plug test_plugin_server plug_dest
  196. GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest
  197. IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  198. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  199. user plugin authentication_string password
  200. plug test_plugin_server plug_dest
  201. plug_dest test_plugin_server plug_dest
  202. DROP USER plug,plug_dest;
  203. ========== test 1.1.1.1/1.1.2.1/1.1.1.5 ====================
  204. SET NAMES utf8;
  205. CREATE USER plüg IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
  206. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  207. user plugin authentication_string
  208. plüg test_plugin_server plüg_dest
  209. DROP USER plüg;
  210. CREATE USER plüg_dest IDENTIFIED BY 'plug_dest_passwd';
  211. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  212. user plugin authentication_string
  213. plüg_dest
  214. DROP USER plüg_dest;
  215. SET NAMES ascii;
  216. CREATE USER 'plüg' IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
  217. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  218. user plugin authentication_string
  219. pl??g test_plugin_server pl??g_dest
  220. DROP USER 'plüg';
  221. CREATE USER 'plüg_dest' IDENTIFIED BY 'plug_dest_passwd';
  222. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  223. user plugin authentication_string
  224. pl??g_dest
  225. DROP USER 'plüg_dest';
  226. SET NAMES latin1;
  227. ========== test 1.1.1.5 ====================================
  228. CREATE USER 'plüg' IDENTIFIED WITH 'test_plügin_server' AS 'plüg_dest';
  229. ERROR HY000: Plugin 'test_plügin_server' is not loaded
  230. CREATE USER 'plug' IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
  231. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  232. user plugin authentication_string
  233. plug test_plugin_server plüg_dest
  234. DROP USER 'plug';
  235. CREATE USER 'plüg_dest' IDENTIFIED BY 'plug_dest_passwd';
  236. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  237. user plugin authentication_string
  238. plüg_dest
  239. DROP USER 'plüg_dest';
  240. SET NAMES utf8;
  241. CREATE USER plüg IDENTIFIED WITH 'test_plügin_server' AS 'plüg_dest';
  242. ERROR HY000: Plugin 'test_plügin_server' is not loaded
  243. CREATE USER 'plüg' IDENTIFIED WITH 'test_plugin_server' AS 'plüg_dest';
  244. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  245. user plugin authentication_string
  246. plüg test_plugin_server plüg_dest
  247. DROP USER 'plüg';
  248. CREATE USER 'plüg_dest' IDENTIFIED BY 'plug_dest_passwd';
  249. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  250. user plugin authentication_string
  251. plüg_dest
  252. DROP USER 'plüg_dest';
  253. CREATE USER plüg IDENTIFIED WITH test_plugin_server AS 'plüg_dest';
  254. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  255. user plugin authentication_string
  256. plüg test_plugin_server plüg_dest
  257. DROP USER plüg;
  258. CREATE USER plüg_dest IDENTIFIED BY 'plug_dest_passwd';
  259. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  260. user plugin authentication_string
  261. plüg_dest
  262. DROP USER plüg_dest;
  263. ========== test 1.1.1.2/1.1.2.2=============================
  264. SET @auth_name= 'test_plugin_server';
  265. CREATE USER plug IDENTIFIED WITH @auth_name AS 'plug_dest';
  266. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@auth_name AS 'plug_dest'' at line 1
  267. SET @auth_string= 'plug_dest';
  268. CREATE USER plug IDENTIFIED WITH test_plugin_server AS @auth_string;
  269. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@auth_string' at line 1
  270. ========== test 1.1.1.3/1.1.2.3=============================
  271. CREATE USER plug IDENTIFIED WITH 'hh''s_test_plugin_server' AS 'plug_dest';
  272. ERROR HY000: Plugin 'hh's_test_plugin_server' is not loaded
  273. CREATE USER plug IDENTIFIED WITH 'test_plugin_server' AS 'hh''s_plug_dest';
  274. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  275. user plugin authentication_string
  276. plug test_plugin_server hh's_plug_dest
  277. DROP USER plug;
  278. CREATE USER 'hh''s_plug_dest' IDENTIFIED BY 'plug_dest_passwd';
  279. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  280. user plugin authentication_string
  281. hh's_plug_dest
  282. DROP USER 'hh''s_plug_dest';
  283. ========== test 1.1.1.4 ====================================
  284. CREATE USER plug IDENTIFIED WITH hh''s_test_plugin_server AS 'plug_dest';
  285. ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''s_test_plugin_server AS 'plug_dest'' at line 1
  286. ========== test 1.1.3.1 ====================================
  287. GRANT INSERT ON test_user_db.* TO grant_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  288. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  289. user plugin authentication_string
  290. grant_user test_plugin_server plug_dest
  291. CREATE USER plug_dest;
  292. DROP USER plug_dest;
  293. GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest;
  294. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  295. user plugin authentication_string
  296. grant_user test_plugin_server plug_dest
  297. plug_dest
  298. DROP USER grant_user,plug_dest;
  299. set @save_sql_mode= @@sql_mode;
  300. SET @@sql_mode=no_auto_create_user;
  301. GRANT INSERT ON test_user_db.* TO grant_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  302. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  303. user plugin authentication_string
  304. grant_user test_plugin_server plug_dest
  305. CREATE USER plug_dest;
  306. DROP USER plug_dest;
  307. GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest;
  308. ERROR 42000: Can't find any matching row in the user table
  309. DROP USER grant_user;
  310. GRANT INSERT ON test_user_db.* TO grant_user IDENTIFIED WITH test_plugin_server AS 'plug_dest';
  311. SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
  312. user plugin authentication_string
  313. grant_user test_plugin_server plug_dest
  314. CREATE USER plug_dest IDENTIFIED BY 'plug_dest_passwd';
  315. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  316. user plugin authentication_string password
  317. grant_user test_plugin_server plug_dest
  318. plug_dest *939AEE68989794C0F408277411C26055CDF41119
  319. DROP USER plug_dest;
  320. GRANT ALL PRIVILEGES ON test_user_db.* TO plug_dest IDENTIFIED BY 'plug_user_passwd';
  321. SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
  322. user plugin authentication_string password
  323. grant_user test_plugin_server plug_dest
  324. plug_dest *560881EB651416CEF77314D07D55EDCD5FC1BD6D
  325. DROP USER grant_user,plug_dest;
  326. set @@sql_mode= @save_sql_mode;
  327. DROP DATABASE test_user_db;