@xxmbabanexx I don't quite understand that question - are you confused about the python part, or the mysql part, or the user credentials part? What are the credentials to?
@xxmbabanexx I would say that the first step would be to connect up ti a MySQL server with some client (either the command-line client, or SQLYog if you're on Windows, or Sequel Pro if you're on OSX) and play with running MySQL queries until you can perform all the operations that you want. Inserts, updates, selects, whatever.
Once you have all the queries and you know what you want to run, you go to Python and find a good MySQL client library to use there, and then write the script that will run those queries.
Then, you drop that script behind Apache (or whatever) as a cgi script, with whatever configuration that entails.