# User add
mysql -e "CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';"

# User GET All Privileges
# ALL PRIVILEGES
# CREATE
# DROP
# DELETE
# INSERT
# SELECT
# UPDATE
# GRANT OPTION
mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';"

# Yetki kaldırma
mysql -e "REVOKE SELECT ON database_name.table_name FROM 'newuser'@'localhost';"

# Yetkileri görmek
mysql -e "SHOW GRANTS FOR 'newuser'@'localhost';"

# Yenileme reload
mysql -e "FLUSH PRIVILEGES;"

# User silmek
mysql -e "DROP USER 'newuser'@'localhost';"
Categories: Bash language

12,706 Comments

macomb news · 27/01/2024 at 08:03

Macomb County, MI News, Breaking News, Sports, Weather, Things to Do https://macombnews.us/

slashnews · 27/01/2024 at 08:49

The latest movie and television news, reviews, film trailers, exclusive interviews, and opinions. https://slashnews.us/

million byte · 27/01/2024 at 09:02

The latest news and reviews in the world of tech, automotive, gaming, science, and entertainment. https://millionbyte.us/

plante ornamentale · 27/01/2024 at 09:08

I would like to thank you for the efforts you’ve put in writing this site. I’m hoping the same high-grade blog post from you in the upcoming as well. Actually your creative writing abilities has inspired me to get my own blog now. Actually the blogging is spreading its wings fast. Your write up is a good example of it.

gard viu de tuia · 27/01/2024 at 09:21

Howdy are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you require any coding knowledge to make your own blog? Any help would be greatly appreciated!

Leave a Reply

Avatar placeholder