Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

allow access to database from username code example

Example 1: grant all priviledges to mysql user

Click to copy
/*
The GRANT statement is used to assign full control over specific database by providing all priviledge.
Follow below statement for assign priviledge to user
*/

Syntax: 
GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'%' WITH GRANT OPTION;

/*
I hope it will help you.
Namaste
*/

Example 2: assign user to database mysql

Click to copy
GRANT type_of_permission ON database_name.table_name TO ‘username’@'localhost’;

Tags:

Sql Example

Related

How would you tell nmap to scan all ports? code example how to deploy node js and react application on heroku code example how to get array length in swift code example Javascript images for background code example createdb psql pass password code example text file to csv code using python code example how to deploy a react project using gh pagwes code example how to scroll over different images in html code example how to download ubuntu for wsl code example int and float compariosion in c++ code example js object for with key code example cloning git could not be established because of ssl problems code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy