MySQL Database basic administrative commands
Hi folks, I am going to write some basic MySQL administrative commands in this post. So let's get started- Create New User in MySQL Database Login to MySQL with super user preferably root or user with full rights Execute below command CREATE USER 'username'@'hostname' IDENTIFIED BY 'YourPassword'; Example: CREATE USER 'fmsuser'@'192.168.0.121' IDENTIFIED BY 'Pass1@210617'; Drop User in MySQL Database Login to MySQL with super user preferably root or user with full rights. Execute below command DROP USER 'username'@'hostname' Example: DROP USER 'fmsuser'@'192.168.0.121' List All Users in MySQL Database Login to MySQL with super user preferably root or user with full rights. Execute below command SELECT * FROM mysql.user Create New MySQL Database Login to MySQL with super user preferably root or user with full rights. Execute below command CREATE DATABASE newDBName DEFAULT CHARAC