Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql add user with all privileges

# First Login mysql shell..
sudo mysql -u root -p 
CREATE USER 'username'@'localhost' IDENTIFIED BY 'P4ssW0rd';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
Comment

add user mysql

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'username'@'localhost';
FLUSH PRIVILEGES;
Comment

add a user to my myql database

sudo mysql   #login try
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'mizan_username'@'localhost';
Comment

mysql create User with Grant Privileges

CREATE USER 'username' IDENTIFIED BY 'password';

GRANT INSERT ON *.* TO 'username';
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle get table schema 
Sql :: remove mysql from centos 7 
Sql :: sql disable trigger 
Sql :: show size of all tables postgres 
Sql :: safe update mode in mysql 
Sql :: mysql find tables with name 
Sql :: psql uri example 
Sql :: list all triggers in sql server 
Sql :: refresh postgres config 
Sql :: Duplicating a MySQL table with all the data Command 
Sql :: mysql get column names from table 
Sql :: string to int mysql 
Sql :: sql drop procedure if exists 
Sql :: alter user password postgres 
Sql :: installer postgresql sur ubuntu 
Sql :: sql delete multiple ids 
Sql :: sql server last executed query 
Sql :: raise application error in oracle 
Sql :: get year from date postgres 
Sql :: mysql remove last character 
Sql :: oracle user last connected 
Sql :: mysql remove unique constraint 
Sql :: postgres select from last 3 months 
Sql :: oracle check table space 
Sql :: sql try catch 
Sql :: get table column names sql ssms 
Sql :: postgres delete last row 
Sql :: mysql create database charset utf8mb4 
Sql :: dynamics 365 x++ aggregate querybuilddatasource 
Sql :: show per page table in xampp 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =