{"id":284,"date":"2024-12-03T12:04:11","date_gmt":"2024-12-03T12:04:11","guid":{"rendered":"https:\/\/wordpresswebhosting.in\/tutorials\/?p=284"},"modified":"2024-12-03T12:04:11","modified_gmt":"2024-12-03T12:04:11","slug":"how-to-create-an-manage-mysqluser","status":"publish","type":"post","link":"https:\/\/wordpresswebhosting.in\/tutorials\/how-to-create-an-manage-mysqluser\/","title":{"rendered":"How to Create and Manage MySQL Users: A Comprehensive Guide"},"content":{"rendered":"<h1>Manage MySQL Users<\/h1>\n<figure style=\"width: 685px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/datavalley.ai\/wp-content\/uploads\/2023\/04\/image-70.png\" alt=\"Manage MySQL\" width=\"685\" height=\"368\" \/><figcaption class=\"wp-caption-text\">Manage MySQL<\/figcaption><\/figure>\n<h1>Manage MySQL &#8211; MySQL is one of the most popular relational database management systems (RDBMS) used for managing and organizing data. One of the key features of MySQL is its user management system, which allows administrators to create and manage users with different access privileges. By effectively managing MySQL users, you can enhance database security, ensure proper access control, and improve collaboration among team members.<\/h1>\n<h1>In this blog, we will walk you through how to create and manage MySQL users, including assigning specific privileges to users and managing access levels. Whether you&#8217;re a developer or a database administrator, understanding MySQL user management is crucial for maintaining a secure and efficient database environment.<\/h1>\n<h2>Prerequisites<\/h2>\n<p>Before proceeding with creating and managing MySQL users, ensure that:<\/p>\n<ol>\n<li>You have MySQL installed on your system.<\/li>\n<li>You have root or administrative access to your <a href=\"https:\/\/www.wordpresswebhosting.in\/linux_hosting\/\">MySQL server<\/a>.<\/li>\n<li>You are familiar with basic SQL commands and MySQL concepts.<\/li>\n<\/ol>\n<h2>Manage MySQL<\/h2>\n<figure style=\"width: 440px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/b1490832.smushcdn.com\/1490832\/wp-content\/uploads\/2021\/06\/Commands-showing-current-users.png?lossy=2&amp;strip=1&amp;webp=1\" alt=\"Manage MySQL\" width=\"440\" height=\"287\" \/><figcaption class=\"wp-caption-text\">Manage MySQL<\/figcaption><\/figure>\n<h2>Step 1: Log in to MySQL<\/h2>\n<p>To begin, you need to log in to your MySQL server. You can do this by running the following command in your terminal or command prompt:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">mysql -u root -p<br \/>\n<\/code><\/div>\n<\/div>\n<p>This command prompts you to enter the root password. After entering the correct password, you will be logged into the <a href=\"https:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noopener\">MySQL<\/a> command line interface (CLI), where you can begin creating and managing users.<\/p>\n<h2>Step 2: Creating a New MySQL User<\/h2>\n<p>To create a new MySQL user, you will need to use the <code>CREATE USER<\/code> statement. The syntax for creating a user is as follows:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'username'<\/span>@<span class=\"hljs-string\">'host'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'password'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<h3>Explanation:<\/h3>\n<ul>\n<li><code>'username'<\/code>: The name of the user you want to create.<\/li>\n<li><code>'host'<\/code>: The host from which the user will connect (you can use <code>%<\/code> for any host or specify an IP address).<\/li>\n<li><code>'password'<\/code>: The password for the new user.<\/li>\n<\/ul>\n<h3>Example:<\/h3>\n<p>Let&#8217;s say you want to create a new user called <code>john<\/code> who can connect from any host (<code>%<\/code>) with the password <code>john_password<\/code>. The SQL query will look like this:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'john_password'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 3: Granting Privileges to the User<\/h2>\n<p>Once the user is created, the next step is to assign privileges. In MySQL, privileges control what actions a user can perform on a specific database. To grant privileges, use the <code>GRANT<\/code> statement.<\/p>\n<p>The syntax for granting privileges is as follows:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">GRANT<\/span> privilege_type <span class=\"hljs-keyword\">ON<\/span> database_name.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'username'<\/span>@<span class=\"hljs-string\">'host'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<h3>Explanation:<\/h3>\n<ul>\n<li><code>privilege_type<\/code>: The type of privilege to be granted (e.g., <code>SELECT<\/code>, <code>INSERT<\/code>, <code>UPDATE<\/code>, <code>DELETE<\/code>, <code>ALL PRIVILEGES<\/code>).<\/li>\n<li><code>database_name.*<\/code>: The database and tables to which the privileges apply. Use <code>*<\/code> for all databases.<\/li>\n<li><code>'username'@'host'<\/code>: The user to whom the privileges are being granted.<\/li>\n<\/ul>\n<h3>Example:<\/h3>\n<p>To grant the <code>SELECT<\/code> privilege on the <code>employees<\/code> database to the user <code>john<\/code>, use the following command:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-keyword\">ON<\/span> employees.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>If you want to grant all privileges on all databases to the user <code>john<\/code>, use the following command:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">ALL<\/span> PRIVILEGES <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-operator\">*<\/span>.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<h3>Note:<\/h3>\n<p>To apply the changes made by the <code>GRANT<\/code> statement, you need to run the <code>FLUSH PRIVILEGES<\/code> command:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\">FLUSH PRIVILEGES;<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 4: Viewing MySQL User Privileges<\/h2>\n<p>To view the privileges granted to a specific user, you can use the <code>SHOW GRANTS<\/code> statement:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">SHOW<\/span> GRANTS <span class=\"hljs-keyword\">FOR<\/span> <span class=\"hljs-string\">'username'<\/span>@<span class=\"hljs-string\">'host'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>For example, to view the privileges of the user <code>john<\/code>, run:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">SHOW<\/span> GRANTS <span class=\"hljs-keyword\">FOR<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>This will display a list of privileges granted to the user.<\/p>\n<h2>Step 5: Modifying User Privileges<\/h2>\n<p>If you need to modify the privileges of an existing user, you can use the <code>GRANT<\/code> statement again to add or remove specific privileges. To revoke a privilege, use the <code>REVOKE<\/code> statement.<\/p>\n<h3>Revoking Privileges:<\/h3>\n<p>To revoke a specific privilege from a user, use the following syntax:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">REVOKE<\/span> privilege_type <span class=\"hljs-keyword\">ON<\/span> database_name.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">FROM<\/span> <span class=\"hljs-string\">'username'<\/span>@<span class=\"hljs-string\">'host'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>For example, to revoke the <code>SELECT<\/code> privilege from the user <code>john<\/code> on the <code>employees<\/code> database, use:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">REVOKE<\/span> <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-keyword\">ON<\/span> employees.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">FROM<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>After revoking privileges, remember to run:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\">FLUSH PRIVILEGES;<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 6: Changing a User\u2019s Password<\/h2>\n<p>If you need to change a user\u2019s password, use the <code>ALTER USER<\/code> statement:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">ALTER<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'username'<\/span>@<span class=\"hljs-string\">'host'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'new_password'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>For example, to change the password for <code>john<\/code> to <code>new_password<\/code>, use:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">ALTER<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'new_password'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>Don&#8217;t forget to flush privileges if needed:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\">FLUSH PRIVILEGES;<br \/>\n<\/code><\/div>\n<\/div>\n<h2>Step 7: Deleting a MySQL User<\/h2>\n<p>If you no longer need a MySQL user, you can delete the user using the <code>DROP USER<\/code> statement:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">DROP<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'username'<\/span>@<span class=\"hljs-string\">'host'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>For example, to delete the user <code>john<\/code>, use:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">DROP<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'john'<\/span>@<span class=\"hljs-string\">'%'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<p>After deleting the user, the user will no longer have access to the MySQL server.<\/p>\n<h2>Best Practices for Managing MySQL Users<\/h2>\n<ul>\n<li><strong>Use Strong Passwords<\/strong>: Always enforce strong password policies for MySQL users to prevent unauthorized access.<\/li>\n<li><strong>Grant Minimum Privileges<\/strong>: Follow the principle of least privilege. Grant only the necessary privileges required for the user to perform their tasks.<\/li>\n<li><strong>Regularly Review User Privileges<\/strong>: Periodically review and update user privileges to ensure that users only have the access they need.<\/li>\n<li><strong>Backup Before Changes<\/strong>: Always take a backup before making significant changes to user access or privileges.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Managing MySQL users effectively is crucial for maintaining a secure and well-organized database environment. By following the steps outlined in this guide, you can create, modify, and delete MySQL users while assigning appropriate privileges to each user. Remember to always follow best practices for security and access control to ensure the integrity of your MySQL databases.<\/p>\n<p>By <a href=\"https:\/\/dev.mysql.com\/doc\/index-enterprise.html\" target=\"_blank\" rel=\"noopener\">mastering user management<\/a>, you&#8217;ll have better control over your MySQL databases, allowing for smoother collaboration and safer access to sensitive data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manage MySQL Users Manage MySQL &#8211; MySQL is one of the most popular relational database management systems (RDBMS) used for managing and organizing data. One of the key features of MySQL is its user management system, which allows administrators to create and manage users with different access privileges. By effectively managing MySQL users, you can<a class=\"sup-readmore\" href=\"https:\/\/wordpresswebhosting.in\/tutorials\/how-to-create-an-manage-mysqluser\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-hosting"],"_links":{"self":[{"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":2,"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/284\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpresswebhosting.in\/tutorials\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}