Yes, you can script a solution. The question then is, what programming languages are you comfortable with? If you are not a programmer, then you need to find one.
You can use ODBC drivers to connect directly to an Excel file. You can then iterate the rows just like a normal SQL table. So your code would iterate the rows in Excel, and update the MySQL db as necessary.
Once you know what language you prefer to use, you should post in the appropriate programming forum--your question is really a programming question, not a database question.