I’m trying find a way to create mysql users with passwords using php code, i.e. without using phpmyadmin, mysql wizard or any else.
Is there a way to do this?
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.
You can send any of the account management commands to the database just like any other query. Of course, it may not be good from a security perspective if your website user account has the privileges in the database to do these things. (Accounts used for public application purposes should generally be kept to minimum necessary privileges.) But that’s another matter entirely.