Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

MySQL

How to Create a user & database in MySQL?

Creating User in MySQL:

CREATE USER ‘shaukat’@’%’ IDENTIFIED BY ‘my_Sec_Pass’;

GRANT USAGE ON * . * TO ‘shaukat’@’%’ IDENTIFIED BY ‘my_Sec_Pass’ WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;

Creating Database in MySQL:

CREATE DATABASE IF NOT EXISTS `shaukat` ;

Granting all privileges to created user:

GRANT ALL PRIVILEGES ON `shaukat` . * TO ‘shaukat’@’%’;

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest