Is it possible to delete all databases that were created by a specific user?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Looking at MySQL’s DELETE DATABASE syntax, it seems impossible via MySQL itself. However, you could use 3rd party application that queries:
to get a list of user’s databases, then loop over the result to query delete database above.