{"id":14480,"date":"2024-01-04T16:11:10","date_gmt":"2024-01-04T12:41:10","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=14480"},"modified":"2024-01-04T16:11:10","modified_gmt":"2024-01-04T12:41:10","slug":"how-to-create-a-new-user-and-grant-permissions-in-mysql","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/en\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/","title":{"rendered":"How to create a new user and grant permissions in MySQL"},"content":{"rendered":"<h2 id=\"%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%da%a9%d8%a7%d8%b1%d8%a8%d8%b1-%d8%ac%d8%af%db%8c%d8%af-%d9%88-%d8%a7%d8%b1%d8%a7%d8%a6%d9%87-%d9%85%d8%ac%d9%88%d8%b2-%d8%af%d8%b1-mysql\"><strong>How to create a new user and grant permissions in MySQL<\/strong><\/h2>\n<p style=\"text-align: justify;\"><strong>Introduction<\/strong><\/p>\n<p style=\"text-align: justify;\">MySQL is an open source relational database management system. It is commonly used as part of the LAMP stack (which stands for Linux, Apache, MySQL, and PHP) and, as of this writing, is the most popular open source database in the world.<\/p>\n<p style=\"text-align: justify;\">This guide explains how to create a new MySQL user and grant them the necessary permissions to perform a variety of actions.<\/p>\n<h4 id=\"%d9%be%db%8c%d8%b4-%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\" style=\"text-align: justify;\"><strong>Prerequisites<\/strong><\/h4>\n<p style=\"text-align: justify;\">To follow this guide, you will need access to a MySQL database. This guide assumes that the database is installed on a virtual private server running Ubuntu 20.04, although the principles it outlines should apply regardless of how you access your database.<\/p>\n<p style=\"text-align: justify;\">If you don&#039;t have access to a MySQL database and want to set it up yourself, you can follow one of our guides on how to install MySQL. Again, regardless of your server&#039;s underlying operating system, the procedures for creating a new MySQL user and granting them permissions will usually be the same.<\/p>\n<h3 id=\"%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%db%8c%da%a9-%da%a9%d8%a7%d8%b1%d8%a8%d8%b1-%d8%ac%d8%af%db%8c%d8%af\" style=\"text-align: justify;\"><strong>Create a new user<\/strong><\/h3>\n<p style=\"text-align: justify;\">After installation, MySQL creates a user account. <strong>root<\/strong> Creates a user that you can use to manage your database. This user has full privileges on the MySQL server, meaning it has complete control over every database, table, user, etc. For this reason, it is best to avoid using this account outside of administrative functions. This step explains how to use the MySQL root user to create a new user account and grant it privileges.<\/p>\n<p style=\"text-align: justify;\">On Ubuntu systems running MySQL 5.7 (and later), the MySQL root user is authenticated by default using the auth_socket plugin, rather than a password. This plugin requires that the operating system user name invoking the MySQL client match the MySQL user name specified in the command. This means that to access the MySQL root user, you must precede the mysql command with sudo to invoke it with the privileges of the Ubuntu root user:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">$ sudo mysql<\/code><\/pre>\n<p style=\"text-align: justify;\"><strong>\u062a\u0648\u062c\u0647:<\/strong> \u0627\u06af\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0631\u06cc\u0634\u0647 MySQL \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0628\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u067e\u0648\u0633\u062a\u0647 MySQL \u0628\u0627\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u062f\u06cc\u06af\u0631\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u06a9\u0644\u0627\u06cc\u0646\u062a MySQL \u0634\u0645\u0627 \u0631\u0627 \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0645\u0639\u0645\u0648\u0644\u06cc \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0634\u0645\u0627 \u0641\u0642\u0637 \u0628\u0627 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0628\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0635\u062d\u06cc\u062d\u060c \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0645\u062f\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0647 \u062f\u0633\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0648\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">$ mysql -u root -p<\/code><\/pre>\n<p style=\"text-align: justify;\">\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0628\u0647 \u0627\u0639\u0644\u0627\u0646 MySQL \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0628\u0627 \u0639\u0628\u0627\u0631\u062a CREATE USER \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646\u0647\u0627 \u0627\u0632 \u0627\u06cc\u0646 \u0646\u062d\u0648 \u06a9\u0644\u06cc \u067e\u06cc\u0631\u0648\u06cc \u0645\u06cc \u06a9\u0646\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\"><span>mysql&gt; <\/span>CREATE USER 'username'@'host' IDENTIFIED WITH authentication_plugin BY 'password';<\/code><\/pre>\n<p style=\"text-align: justify;\">\u0628\u0639\u062f \u0627\u0632 CREATE USER \u06cc\u06a9 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u06cc\u062f. \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u067e\u0633 \u0627\u0632 \u0622\u0646 \u06cc\u06a9 \u0639\u0644\u0627\u0645\u062a @ \u0648 \u0633\u067e\u0633 \u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u06a9\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0632 \u0622\u0646 \u0645\u062a\u0635\u0644 \u0645\u06cc \u0634\u0648\u062f\u060c \u0645\u06cc \u0622\u06cc\u062f. \u0627\u06af\u0631 \u0641\u0642\u0637 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u0627\u0632 \u0633\u0631\u0648\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0628\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u062d\u0644\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f localhost \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u06cc\u062f. \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0645\u06cc\u0632\u0628\u0627\u0646 \u062f\u0631 \u06cc\u06a9 \u0646\u0642\u0644 \u0642\u0648\u0644 \u0647\u0645\u06cc\u0634\u0647 \u0636\u0631\u0648\u0631\u06cc \u0646\u06cc\u0633\u062a\u060c \u0627\u0645\u0627 \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062e\u0637\u0627\u0647\u0627 \u06a9\u0645\u06a9 \u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0647\u0646\u06af\u0627\u0645 \u0627\u0646\u062a\u062e\u0627\u0628 \u0627\u0641\u0632\u0648\u0646\u0647 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631\u060c \u0686\u0646\u062f\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u062f\u0627\u0631\u06cc\u062f. \u0627\u0641\u0632\u0648\u0646\u0647 auth_socket \u06a9\u0647 \u0642\u0628\u0644\u0627 \u0630\u06a9\u0631 \u0634\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0631\u0627\u062d\u062a \u0628\u0627\u0634\u062f\u060c \u0632\u06cc\u0631\u0627 \u0627\u0645\u0646\u06cc\u062a \u0642\u0648\u06cc \u0631\u0627 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0645\u0639\u062a\u0628\u0631 \u0628\u0631\u0627\u06cc \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f. \u0627\u0645\u0627 \u0627\u0632 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u0627\u0647 \u062f\u0648\u0631 \u0646\u06cc\u0632 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0645\u06cc \u06a9\u0646\u062f\u060c \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u062e\u0627\u0631\u062c\u06cc \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 MySQL \u062f\u0627\u0631\u0646\u062f\u060c \u06a9\u0627\u0631 \u0631\u0627 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u062e\u0634 WITH authentication_plugin \u0627\u0632 \u0646\u062d\u0648 \u0631\u0627 \u06a9\u0627\u0645\u0644\u0627\u064b \u06a9\u0646\u0627\u0631 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f \u062a\u0627 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0627\u0641\u0632\u0648\u0646\u0647 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 MySQL\u060c \u06a9\u0647 \u060c caching_sha2_password \u0646\u0627\u0645 \u062f\u0627\u0631\u062f \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u06a9\u0646\u062f. \u0645\u0633\u062a\u0646\u062f\u0627\u062a MySQL \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0627\u0645\u0646\u06cc\u062a\u06cc \u0642\u0648\u06cc\u060c \u0627\u06cc\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646\u06cc \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u0646\u062f \u0628\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0648\u0627\u0631\u062f \u0634\u0648\u0646\u062f\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631\u06cc \u06a9\u0647 \u0628\u0627 caching_sha2_password \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u06cc \u06a9\u0646\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 <code><mark>sammy<\/mark><\/code><span>\u00a0<\/span>\u0631\u0627 \u0628\u0647 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 <code><mark>password<\/mark><\/code><span>\u00a0<\/span> \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f \u0628\u0647 \u06cc\u06a9 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0642\u0648\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code><span>mysql&gt; <\/span>CREATE USER 'sammy'@'localhost' IDENTIFIED BY 'password';<\/code><\/pre>\n<p style=\"text-align: justify;\"><span style=\"color: #008000;\"><strong>\u062a\u0648\u062c\u0647:<\/strong> \u06cc\u06a9 \u0645\u0634\u06a9\u0644 \u0634\u0646\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0628\u0631\u062e\u06cc \u0627\u0632 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc PHP \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u0627\u0639\u062b \u0627\u06cc\u062c\u0627\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 caching_sha2_password \u0645\u06cc \u0634\u0648\u062f. \u0627\u06af\u0631 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0627 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 PHP \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f &#8211; \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 phpMyAdmin &#8211; \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0627\u0631\u0628\u0631\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0627 \u0627\u0641\u0632\u0648\u0646\u0647 mysql_native_password \u0642\u062f\u06cc\u0645\u06cc\u200c\u062a\u0631\u060c \u0647\u0631\u0686\u0646\u062f \u0647\u0646\u0648\u0632 \u0627\u0645\u0646\u060c \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u06a9\u0646\u062f:<\/span><\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code><span>mysql&gt; <\/span>CREATE USER 'sammy'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';<\/code><\/pre>\n<p style=\"text-align: justify;\"><span style=\"color: #008000;\">\u0627\u06af\u0631 \u0645\u0637\u0645\u0626\u0646 \u0646\u06cc\u0633\u062a\u06cc\u062f\u060c \u0647\u0645\u06cc\u0634\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06a9\u0627\u0631\u0628\u0631\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0627 caching_sha2_plugin \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0633\u067e\u0633 \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0622\u0646 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/span><\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code><span>mysql&gt; <\/span>ALTER USER 'sammy'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';<\/code><\/pre>\n<p style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u062e\u0648\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0645\u0646\u0627\u0633\u0628 \u0631\u0627 \u0628\u0647 \u0622\u0646\u0647\u0627 \u0628\u062f\u0647\u06cc\u062f.<\/p>\n<h3 id=\"%d8%a7%d8%b9%d8%b7%d8%a7%db%8c-%d9%85%d8%ac%d9%88%d8%b2%d9%87%d8%a7%db%8c-%da%a9%d8%a7%d8%b1%d8%a8%d8%b1\" style=\"text-align: justify;\"><strong>\u0627\u0639\u0637\u0627\u06cc \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631<\/strong><\/h3>\n<p style=\"text-align: justify;\">\u0646\u062d\u0648 \u06a9\u0644\u06cc \u0628\u0631\u0627\u06cc \u0627\u0639\u0637\u0627\u06cc \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<div class=\"hcb_wrap\" style=\"text-align: justify;\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>mysql&gt; GRANT PRIVILEGE ON database.table TO 'username'@'host';<\/code><\/pre>\n<\/div>\n<p style=\"text-align: justify;\">\u0645\u0642\u062f\u0627\u0631 PRIVILEGE \u062f\u0631 \u0627\u06cc\u0646 \u0646\u062d\u0648 \u0645\u062b\u0627\u0644\u060c \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0645\u062c\u0627\u0632 \u0627\u0633\u062a \u0686\u0647 \u0627\u0642\u062f\u0627\u0645\u0627\u062a\u06cc \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648 \u062c\u062f\u0648\u0644 \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u062f. \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u062c\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0628\u0627 \u06a9\u0627\u0645\u0627\u060c \u0686\u0646\u062f\u06cc\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0628\u0647 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u0633\u062a\u0627\u0631\u0647 (*) \u0628\u0647 \u062c\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648 \u0646\u0627\u0645 \u062c\u062f\u0648\u0644\u060c \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u062c\u0647\u0627\u0646\u06cc \u0631\u0627 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0639\u0637\u0627 \u06a9\u0646\u06cc\u062f. \u062f\u0631 SQL\u060c \u0633\u062a\u0627\u0631\u0647 \u0647\u0627 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc \u062e\u0627\u0635\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 &#8220;<span>all<\/span>&#8221; \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627 \u06cc\u0627 \u062c\u062f\u0627\u0648\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u062c\u0647\u0627\u0646\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f\u060c \u062a\u063a\u06cc\u06cc\u0631 \u0648 \u0631\u0647\u0627 \u06a9\u0631\u062f\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647\u060c \u062c\u062f\u0627\u0648\u0644 \u0648 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0642\u062f\u0631\u062a \u062f\u0631\u062c\u060c \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0648 \u062d\u0630\u0641 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0627\u0632 \u0647\u0631 \u062c\u062f\u0648\u0644 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0628\u0627 SELECT \u062c\u0633\u062a\u062c\u0648 \u06a9\u0646\u062f\u060c \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u062e\u0627\u0631\u062c\u06cc \u0631\u0627 \u0628\u0627 \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc REFERENCES \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a FLUSH \u0631\u0627 \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632 RELOAD \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0634\u0645\u0627 \u0641\u0642\u0637 \u0628\u0627\u06cc\u062f \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u062e\u0648\u062f \u0631\u0627 \u0628\u062f\u0647\u06cc\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u062f\u0631 \u0635\u0648\u0631\u062a \u0644\u0632\u0648\u0645 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u062e\u0648\u062f \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0644\u06cc\u0633\u062a \u06a9\u0627\u0645\u0644 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0645\u0648\u062c\u0648\u062f \u0631\u0627 \u062f\u0631 \u0627\u0633\u0646\u0627\u062f \u0631\u0633\u0645\u06cc MySQL \u0628\u06cc\u0627\u0628\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u0628\u06cc\u0627\u0646\u06cc\u0647 GRANT \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f\u060c \u0648 <span>sammy <\/span>\u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc MySQL \u062e\u0648\u062f \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0627\u06cc\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0631\u0627 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u062e\u0648\u062f \u0627\u0639\u0637\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>mysql&gt; GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'sammy'@'localhost' WITH GRANT OPTION;<\/code><\/pre>\n<p style=\"text-align: justify;\">\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u0628\u06cc\u0627\u0646\u06cc\u0647 \u0634\u0627\u0645\u0644 WITH GRANT OPTION \u0646\u06cc\u0632 \u0645\u06cc \u0628\u0627\u0634\u062f. \u0627\u06cc\u0646 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 MySQL \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0645\u062c\u0648\u0632\u06cc \u0631\u0627 \u06a9\u0647 \u062f\u0627\u0631\u062f \u0628\u0647 \u0633\u0627\u06cc\u0631 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0639\u0637\u0627 \u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff6600;\"><strong>\u0627\u062e\u0637\u0627\u0631:<\/strong> \u0628\u0631\u062e\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u062e\u0648\u0627\u0647\u0646\u062f \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 MySQL \u062e\u0648\u062f \u0627\u0645\u062a\u06cc\u0627\u0632 ALL PRIVILEGES \u0631\u0627 \u0627\u0639\u0637\u0627 \u06a9\u0646\u0646\u062f\u060c \u06a9\u0647 \u0628\u0647 \u0622\u0646\u0647\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0627\u0628\u0631\u06a9\u0627\u0631\u0628\u0631 \u06af\u0633\u062a\u0631\u062f\u0647 \u0627\u06cc \u0645\u0634\u0627\u0628\u0647 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0627\u0635\u0644\u06cc \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f\u060c \u0645\u0627\u0646\u0646\u062f:<\/span><\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>mysql&gt; GRANT ALL PRIVILEGES ON *.* TO 'sammy'@'localhost' WITH GRANT OPTION;<\/code><\/pre>\n<p style=\"text-align: justify;\"><span style=\"color: #ff6600;\">\u0686\u0646\u06cc\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u06af\u0633\u062a\u0631\u062f\u0647 \u0627\u06cc \u0646\u0628\u0627\u06cc\u062f \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0627\u0639\u0637\u0627 \u0634\u0648\u062f\u060c \u0632\u06cc\u0631\u0627 \u0647\u0631 \u06a9\u0633\u06cc \u06a9\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631 MySQL \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u06a9\u0646\u062a\u0631\u0644 \u06a9\u0627\u0645\u0644\u06cc \u0628\u0631 \u0647\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a.<\/span><\/p>\n<p style=\"text-align: justify;\">\u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0631\u0627\u0647\u0646\u0645\u0627\u0647\u0627 \u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u06a9\u0647 \u062f\u0633\u062a\u0648\u0631 FLUSH PRIVILEGES \u0631\u0627 \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u067e\u0633 \u0627\u0632 \u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a CREATE USER \u06cc\u0627 GRANT \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062c\u062f\u0627\u0648\u0644 \u0627\u0639\u0637\u0627 \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0634\u0648\u062f \u06a9\u0647 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u062c\u062f\u06cc\u062f \u0627\u0639\u0645\u0627\u0644 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">mysql&gt; FLUSH PRIVILEGES;<\/code><\/pre>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0637\u0628\u0642 \u0627\u0633\u0646\u0627\u062f \u0631\u0633\u0645\u06cc MySQL\u060c \u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u062c\u062f\u0627\u0648\u0644 \u06a9\u0645\u06a9 \u0647\u0632\u06cc\u0646\u0647 \u0631\u0627 \u0628\u0647 \u0637\u0648\u0631 \u063a\u06cc\u0631\u0645\u0633\u062a\u0642\u06cc\u0645 \u0628\u0627 \u06cc\u06a9 \u0628\u06cc\u0627\u0646\u06cc\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062d\u0633\u0627\u0628 \u0645\u0627\u0646\u0646\u062f GRANT \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u06cc\u062f\u060c \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062c\u062f\u0627\u0648\u0644 \u06a9\u0645\u06a9 \u0647\u0632\u06cc\u0646\u0647 \u0631\u0627 \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u062f\u0631 \u062d\u0627\u0641\u0638\u0647 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0645\u06cc \u06a9\u0646\u062f\u060c \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u06a9\u0647 \u062f\u0633\u062a\u0648\u0631 FLUSH PRIVILEGES \u062f\u0631 \u0645\u0648\u0631\u062f \u0645\u0627 \u0636\u0631\u0648\u0631\u06cc \u0646\u06cc\u0633\u062a. \u0627\u0632 \u0637\u0631\u0641\u06cc \u0627\u062c\u0631\u0627\u06cc \u0622\u0646 \u0647\u06cc\u0686 \u062a\u0627\u062b\u06cc\u0631 \u0645\u0646\u0641\u06cc \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0646\u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a.<\/p>\n<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0644\u063a\u0648 \u0645\u062c\u0648\u0632 \u062f\u0627\u0631\u06cc\u062f\u060c \u0633\u0627\u062e\u062a\u0627\u0631 \u062a\u0642\u0631\u06cc\u0628\u0627\u064b \u0645\u0634\u0627\u0628\u0647 \u0627\u0639\u0637\u0627\u06cc \u0645\u062c\u0648\u0632 \u0627\u0633\u062a:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">mysql&gt; REVOKE type_of_permission ON database_name.table_name FROM 'username'@'host';<\/code><\/pre>\n<p style=\"text-align: justify;\">\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0647\u0646\u06af\u0627\u0645 \u0644\u063a\u0648 \u0645\u062c\u0648\u0632\u0647\u0627\u060c \u0633\u06cc\u0646\u062a\u06a9\u0633 \u0627\u06cc\u062c\u0627\u0628 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0628\u0647 \u062c\u0627\u06cc TO \u06a9\u0647 \u0647\u0646\u06af\u0627\u0645 \u0627\u0639\u0637\u0627\u06cc \u0645\u062c\u0648\u0632\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0631\u062f\u06cc\u062f\u060c \u0627\u0632 FROM \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 SHOW GRANTS \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u0641\u0639\u0644\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">mysql&gt; SHOW GRANTS FOR 'username'@'host';<\/code><\/pre>\n<p style=\"text-align: justify;\">\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0628\u0627 DROP \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 DROP \u0628\u0631\u0627\u06cc \u062d\u0630\u0641 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>mysql&gt; DROP USER 'username'@'localhost';<\/code><\/pre>\n<p style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 MySQL \u0648 \u062f\u0627\u062f\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u0628\u0647 \u0622\u0646\u0647\u0627\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0645\u062d\u06cc\u0637 \u06a9\u0627\u0631\u0628\u0631\u06cc MySQL \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">mysql&gt; exit<\/code><\/pre>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0622\u06cc\u0646\u062f\u0647\u060c \u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 MySQL \u062c\u062f\u06cc\u062f\u060c \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u06cc \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">$ mysql -u sammy -p<\/code><\/pre>\n<p style=\"text-align: justify;\">\u067e\u0631\u0686\u0645 p- \u0628\u0627\u0639\u062b \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a MySQL \u0627\u0632 \u0634\u0645\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u06a9\u0627\u0631\u0628\u0631 MySQL \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0646\u062f.<\/p>\n<h4 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\" style=\"text-align: justify;\"><strong>\u0646\u062a\u06cc\u062c\u0647<\/strong><\/h4>\n<p style=\"text-align: justify;\">\u0628\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u06cc\u0627\u062f \u06af\u0631\u0641\u062a\u06cc\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u062c\u062f\u06cc\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0645\u062c\u0648\u0632\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0628\u0647 \u0622\u0646\u0647\u0627 \u0628\u062f\u0647\u06cc\u062f. \u0627\u0632 \u0627\u06cc\u0646\u062c\u0627\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u06a9\u0627\u0648\u0634 \u0648 \u0622\u0632\u0645\u0627\u06cc\u0634 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0645\u062e\u062a\u0644\u0641 \u0645\u062c\u0648\u0632 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 MySQL \u062e\u0648\u062f \u0627\u062f\u0627\u0645\u0647 \u062f\u0647\u06cc\u062f\u060c \u06cc\u0627 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0631\u0628\u0627\u0631\u0647 \u0628\u0631\u062e\u06cc \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0633\u0637\u062d \u0628\u0627\u0644\u0627\u062a\u0631 MySQL \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631\u06cc \u06a9\u0633\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"Learning to create a new user and grant permissions in MySQL Introducing MySQL, a relational database management system\u2026","protected":false},"author":1,"featured_media":14482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"349","footnotes":""},"categories":[349],"tags":[],"class_list":{"0":"post-14480","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-database"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/en\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL \u0645\u0639\u0631\u0641\u06cc MySQL \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647 \u0627\u06cc&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/en\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-04T12:41:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/01\/04160937\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL\",\"datePublished\":\"2024-01-04T12:41:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/\"},\"wordCount\":104,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/01\\\/04160937\\\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg\",\"articleSection\":[\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/\",\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/01\\\/04160937\\\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg\",\"datePublished\":\"2024-01-04T12:41:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/01\\\/04160937\\\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/01\\\/04160937\\\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/database\\\/how-to-create-a-new-user-and-grant-permissions-in-mysql\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/database\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a new user and grant permissions in MySQL - ITPiran Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/en\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/","og_locale":"en_US","og_type":"article","og_title":"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL \u0645\u0639\u0631\u0641\u06cc MySQL \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647 \u0627\u06cc&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/en\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-01-04T12:41:10+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/01\/04160937\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL","datePublished":"2024-01-04T12:41:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/"},"wordCount":104,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/01\/04160937\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg","articleSection":["\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/","url":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/","name":"How to create a new user and grant permissions in MySQL - ITPiran Blog","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/01\/04160937\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg","datePublished":"2024-01-04T12:41:10+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/01\/04160937\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/01\/04160937\/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF-%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF-%D9%88-%D8%A7%D8%B1%D8%A7%D8%A6%D9%87-%D9%85%D8%AC%D9%88%D8%B2-%D8%AF%D8%B1-MySQL.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/database\/how-to-create-a-new-user-and-grant-permissions-in-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647","item":"https:\/\/www.itpiran.net\/blog\/category\/database\/"},{"@type":"ListItem","position":3,"name":"\u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f \u0648 \u0627\u0631\u0627\u0626\u0647 \u0645\u062c\u0648\u0632 \u062f\u0631 MySQL"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran Blog","description":"Iranian Sustainable Trade News and Articles","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Sustainable Iranian Business Blog","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"admin","url":"https:\/\/www.itpiran.net\/blog\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/comments?post=14480"}],"version-history":[{"count":2,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14480\/revisions"}],"predecessor-version":[{"id":14483,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14480\/revisions\/14483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media\/14482"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media?parent=14480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/categories?post=14480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/tags?post=14480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}