Summary

In this chapter, we have covered how to create and remove users and privileges with MySQL for Python. We have seen:

  • How to use MySQL and MySQLdb to CREATE and DROP users
  • How to set user passwords
  • How we can manage database privileges with MySQL for Python
  • Ways to automate user creation and removal
  • How to GRANT and REVOKE privileges and the conditions under which that can be done

In the next chapter, we will look at working with dates and time in MySQL for Python.

Get MySQL for Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.