Software >> Services >> RDBMS >> MySQL >> How to create a new user and grant access to a DBExample to - create new user hfp mysql --host='db_host_name' --user='root' --password when prompted, enter root password mysql> create database hfp; mysq> CREATE USER 'hfp'@'db_host_name' IDENTIFIED BY 'hfp_password'; mysql> GRANT ALL PRIVILEGES ON hfp.* TO 'hfp'@'db_host_name'
|