local querycreate = "create user 'dddqwd123_dwqd'@'localhost'"
local create, usercreate, username, userhost = querycreate:match("^(%w+)%s+(%w+)%s+'([%w_]+)'@'(%w+)'$")
print(string.format("query: %s", querycreate))
print(string.format(" var create = %s \n var usercreate = %s \n var username = %s \n var userhost = %s", create, usercreate, username, userhost))
bG9jYWwgcXVlcnljcmVhdGUgPSAiY3JlYXRlIHVzZXIgJ2RkZHF3ZDEyM19kd3FkJ0AnbG9jYWxob3N0JyIKbG9jYWwgY3JlYXRlLCB1c2VyY3JlYXRlLCB1c2VybmFtZSwgdXNlcmhvc3QgPSBxdWVyeWNyZWF0ZTptYXRjaCgiXigldyspJXMrKCV3KyklcysnKFsld19dKyknQCcoJXcrKSckIikKCnByaW50KHN0cmluZy5mb3JtYXQoInF1ZXJ5OiAlcyIsIHF1ZXJ5Y3JlYXRlKSkKcHJpbnQoc3RyaW5nLmZvcm1hdCgiIHZhciBjcmVhdGUgPSAlcyBcbiB2YXIgdXNlcmNyZWF0ZSA9ICVzIFxuIHZhciB1c2VybmFtZSA9ICVzIFxuIHZhciB1c2VyaG9zdCA9ICVzIiwgY3JlYXRlLCB1c2VyY3JlYXRlLCB1c2VybmFtZSwgdXNlcmhvc3QpKQ==