Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7415239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:15:45+00:00 2026-05-29T07:15:45+00:00

I have succesfully installed mysql-proxy and understood the way working and lua scripting. But

  • 0

I have succesfully installed mysql-proxy and understood the way working and lua scripting.
But I am not good at writing lua.

So my problem is the software I use for web hosting keep creating mysql users with OLD_PASSWORD(”) in the queries. I think mysql-proxy should easyly replace OLD_PASSWORD(”) with new PASSWORD(”) value.

I have recently seen some tutorials on youtube some ppl manage to replace queries via phpmyadmin. If there is any other way to replace queries please let me now.

Not: I can not change queries from software because it is encoded and some files exe.

Example query:

INSERT INTO mysql.user (Host, User, Password) VALUES ('localhost', 'safaf', OLD_PASSWORD('123456'))

Expected query :

INSERT INTO mysql.user (Host, User, Password) VALUES ('localhost', 'safaf', PASSWORD('123456'))
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:15:46+00:00Added an answer on May 29, 2026 at 7:15 am

    After some search on the internet i found the solution.

     function read_query( packet )
       if string.byte(packet) == proxy.COM_QUERY then
         local query = string.sub(packet, 2)
         local replacing = false
         -- matches "OLD" as first word of the query
         if string.match(string.upper(query), 'OLD_PASSWORD') then
             query = string.gsub(query,'OLD_PASSWORD', 'PASSWORD')
             replacing = true
         end
         if (replacing) then
             proxy.queries:append(1, string.char(proxy.COM_QUERY) .. query )
             return proxy.PROXY_SEND_QUERY
         end
       end
     end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed php successfully on a Windows 7 machine but I can not
i have just succesfully installed open atrium, but i can't find the configuration of
Good times for everyone. I have such problem, feeling that it's simple, but due
I have succesfully installed my service using InstallUtil, but I would like my service
I have succesfully installed Doxygen and GraphViz on my mac (running Lion OS), but
I followed their how-to: Phonegap Start Phonegap wiki I have succesfully installed the android
I installed lua bundle to Textmate, but when click on check syntax I get
I have installed rails and mysql. I have also installed mysql2 gem. I created
I installed ruby and ruby gems through macport but the gem list does not
I've installed Django-registration succesfully (form this tutorial) . So now I have a Django

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.