{"id":48250,"date":"2024-07-29T07:00:00","date_gmt":"2024-07-29T14:00:00","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=48250"},"modified":"2025-05-21T16:18:04","modified_gmt":"2025-05-21T23:18:04","slug":"mysql-users","status":"publish","type":"post","link":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/","title":{"rendered":"How to Create and Manage MySQL Users"},"content":{"rendered":"\n<p>Imagine a library where anyone can come in and make edits to the books at any time.<\/p>\n\n\n\n<p>You come in to check out <em>Lord of the Rings<\/em>, but suddenly, instead of a timeless tale of friendship and courage in the face of all-consuming evil, it&#8217;s quite the opposite.<\/p>\n\n\n\n<p>Someone has rewritten Frodo and Sam&#8217;s heroic journey to Mordor, making them give up on saving Middle Earth, opting instead to open a jewelry store in Bree. Their first customer? Sauron. And wouldn&#8217;t you know it, he&#8217;s shopping for a ring.<\/p>\n\n\n\n<p>As for Aragorn, Legolas, and Gimli? Let&#8217;s just say whoever\u2019s edited the story is <em>very<\/em> into fan fiction. We&#8217;ll leave it at that.<\/p>\n\n\n\n<p><strong>Your website is like that library, and the database that powers it is like all the books in it<\/strong>. If you give just about anyone access to come in and make changes, you could end up with a <em>Lord of the Rings <\/em>rewrite situation \u2014 but so much worse because it could <a href=\"https:\/\/www.dreamhost.com\/blog\/cloud-security-tips\/\" target=\"_blank\" rel=\"noreferrer noopener\">put your entire site (and all its data) at risk<\/a>.<\/p>\n\n\n\n\n\n<div class=\"glossary-term\">\n\t<a\n\t\tclass=\"glossary-term__above-title\"\n\t\thref=\"\"\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 640 512\"><path d=\"M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z\"\/><\/svg>\n\t\t<span><\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n    <h3>Database<\/h3>\n    <p>A database is a collection of information accessible to computers. Databases are used to store information such as customer records, product catalogs, and financial transactions.<\/p>\n            <a\n            href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/database\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Read More                    <\/a>\n\n<\/div>\n\n\n\n<p><strong>That&#8217;s why you need to control who can see, access, and modify your data to keep your site secure and running smoothly.<\/strong><\/p>\n\n\n\n<p>This post will walk you through the basics of MySQL user management, from creating user accounts to assigning and modifying permissions.<\/p>\n\n\n\n<p>Ready to dive in? Let&#8217;s get started!<\/p>\n\n\n\n<h2 id=\"h-what-is-a-mysql-database\" class=\"wp-block-heading\">What is a MySQL Database?<\/h2>\n\n\n\n<p>A MySQL database is a structured collection of data stored electronically and managed using the MySQL Database Management System (DBMS).<\/p>\n\n\n\n<p>MySQL, an open-source relational database management system, uses Structured Query Language (SQL) for accessing, managing, and manipulating the data.<\/p>\n\n\n\n<p>A MySQL database is designed to handle everything from a single row of information to large datasets comprising millions of rows. It&#8217;s built to store data in tables, which are organized into rows and columns. Each table in a MySQL database serves a specific purpose, holding data relevant to different aspects of your site or web application.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.dreamhost.com\/blog\/postgresql-vs-mysql\/\" target=\"_blank\" rel=\"noreferrer noopener\">MySQL is well known for being reliable<\/a> and easy to use. Web developers across industries use it for web applications, logging applications, data warehousing, and more. Whether you&#8217;re storing user information, product catalogs, or transaction records, MySQL is robust and scalable and can likely meet your database management needs.<\/p>\n\n\n\n<p><strong>Pro tip: <\/strong>Need to migrate or connect a MySQL database to your DreamHost site? Find an easy-to-follow tutorial in our <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/categories\/202198388-MySQL-Databases\" target=\"_blank\" rel=\"noreferrer noopener\">Knowledge Base<\/a>.<\/p>\n\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<h2>Get Content Delivered Straight to Your Inbox<\/h2><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>\n\n\n<h2 id=\"h-mysql-user-accounts-explained\" class=\"wp-block-heading\">MySQL User Accounts Explained<\/h2>\n\n\n\n<p>MySQL user accounts are essential for managing access to your database. Each user account in MySQL can be given specific permissions that dictate what actions the user can perform. This granular control helps maintain the security and integrity of your data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-the-role-of-the-root-user\">The Role of the Root User<\/h3>\n\n\n\n<p>When you first install MySQL, a default user account called <strong>root<\/strong> is created.<\/p>\n\n\n\n<p>The root user has full administrative privileges, meaning they can perform any action on the database, including creating and deleting databases, adding and removing users, and granting or revoking permissions.<\/p>\n\n\n\n<p>While the root user is powerful, we don\u2019t recommend relying solely on this account for all tasks. Using the root account for everyday operations poses a significant security risk.<\/p>\n\n\n\n<p>If anyone <a href=\"https:\/\/www.dreamhost.com\/blog\/secure-your-wordpress-website\/\" target=\"_blank\" rel=\"noreferrer noopener\">gains unauthorized access<\/a> to this account, they&#8217;ll have control over your database.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2400\" height=\"2100\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts.webp\" alt=\"Diagram of MySQL user accounts, showing Root User, Developer, Administrator, and New User connected to MySQL database boxes.\" class=\"wp-image-48258 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts.webp 2400w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-300x263.webp 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-1024x896.webp 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-768x672.webp 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-1536x1344.webp 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-2048x1792.webp 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-600x525.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-1200x1050.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-730x639.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-1460x1278.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-784x686.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-1568x1372.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-877x767.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/01_mysql_user_accounts-1754x1535.webp 1754w\" data-sizes=\"(max-width: 2400px) 100vw, 2400px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2400px; --smush-placeholder-aspect-ratio: 2400\/2100;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Why Create New Users?<\/h3>\n\n\n\n<p>For better security and to streamline database management, the best practice is to create specific user accounts for different purposes.<\/p>\n\n\n\n<p>For example, you might create separate accounts for developers, administrators, and application processes, giving each type of account only the necessary permissions they need to perform their tasks. This way, you minimize the risk of accidental or malicious actions that could affect your database&#8217;s integrity and security.<\/p>\n\n\n\n<p>Creating new user accounts allows you to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Improve database and site security: <\/strong>Limit access to sensitive data and critical operations by assigning only the necessary permissions to each user.<\/li>\n\n\n\n<li><strong>Better organize roles: <\/strong>Clearly define roles and responsibilities within your team by giving everyone the appropriate level of access to tasks they need to do.<\/li>\n\n\n\n<li><strong>Make it easier to manage your database: <\/strong>Easily track and manage user activities, making it simpler to audit changes and identify issues.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"h2_how-to-manage-your-mysql-users-two-methods\" class=\"wp-block-heading\">How to Manage Your MySQL Users (Two Methods)<\/h2>\n\n\n\n<p>We&#8217;ll cover two primary methods to manage your MySQL users: using MySQL directly, and using the DreamHost panel. In the end, which method you use will depend on your <a href=\"https:\/\/www.dreamhost.com\/blog\/learn-sql\/\" target=\"_blank\" rel=\"noreferrer noopener\">comfort level with command-line tools<\/a> and your specific requirements.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Managing Users With MySQL<\/h3>\n\n\n\n<p>To manage MySQL users directly through MySQL, you&#8217;ll need to have MySQL installed on your system.<\/p>\n\n\n\n<p>This involves downloading the MySQL software from the <a href=\"https:\/\/dev.mysql.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">official MySQL website<\/a>, installing it, and configuring it according to your operating system&#8217;s requirements.<\/p>\n\n\n\n<p>Once installed, you can interact with your MySQL database using the MySQL command-line client.<\/p>\n\n\n\n<p><strong>Nerd Note: <\/strong>Most of the following commands can only be used on dedicated servers. You can check out our <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/115000263911-MySQL-limitations-due-to-shared-hosting\" target=\"_blank\" rel=\"noreferrer noopener\">Knowledge Base<\/a> for more information.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2560\" height=\"1660\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-scaled.webp\" alt=\"MySQL Community Downloads page showing MySQL Installer 8.0.37 options for Windows, with download links and file details.\" class=\"wp-image-48260 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-scaled.webp 2560w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-300x195.webp 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-1024x664.webp 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-768x498.webp 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-1536x996.webp 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-2048x1328.webp 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-600x389.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-1200x778.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-730x473.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-1460x947.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-784x508.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-1568x1017.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-877x569.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/02_managing_users_with_mysql-1754x1137.webp 1754w\" data-sizes=\"(max-width: 2560px) 100vw, 2560px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2560px; --smush-placeholder-aspect-ratio: 2560\/1660;\" \/><\/figure>\n\n\n\n<p><strong>To install MySQL, follow these steps:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit the MySQL <a href=\"https:\/\/dev.mysql.com\/downloads\/\" target=\"_blank\" rel=\"noreferrer noopener\">official website<\/a>, download the installer, and follow the installation instructions for your operating system (Windows, macOS, or Linux).<\/li>\n\n\n\n<li>After installation, you&#8217;ll need to configure the MySQL server to set up initial user accounts and security settings.<\/li>\n\n\n\n<li>Use Terminal (on macOS and Linux) or command prompt (on Windows) to access the MySQL command-line interface by entering the command <code>mysql -u root -p<\/code>, followed by your root password.<\/li>\n<\/ol>\n\n\n\n<p>Once you have MySQL set up, you can create, manage, and delete user accounts using SQL commands.<\/p>\n\n\n\n<p><strong>This method gives you a high level of control and flexibility<\/strong>, but it does require you to be familiar with SQL syntax and command-line operations (which we&#8217;ll cover in more detail below).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How to Create a MySQL User Account<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the MySQL server as the root user. Enter the following command: <code>mysql -u root -p<\/code>.<\/li>\n\n\n\n<li>You&#8217;ll be prompted to enter the root password. Once authenticated, you&#8217;ll be connected to the MySQL server.<\/li>\n\n\n\n<li>To create a new user, use the <strong>CREATE USER<\/strong> statement. Replace <strong>newuser<\/strong> with the desired username and <strong>password<\/strong> with a strong password for the new user: <code>CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';<\/code><\/li>\n\n\n\n<li>This command creates a new user who can only connect from the local machine (<strong>localhost<\/strong>). If you want the user to connect from any host, replace <strong>localhost<\/strong> with <strong>%<\/strong>.<\/li>\n\n\n\n<li>To apply the changes, execute the <strong>FLUSH PRIVILEGES<\/strong> command: <code>FLUSH PRIVILEGES;<\/code><\/li>\n<\/ol>\n\n\n\n<p><strong>Nerd Note: <\/strong>Whenever a password is assigned via command prompt, it\u2019s good practice to clear the<a href=\"https:\/\/www.geeksforgeeks.org\/how-to-clear-the-terminal-history-in-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\"> terminal history<\/a> to reduce the risk of someone stumbling across a password.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How to Grant Privileges for a MySQL User<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the MySQL server as the root user. Enter the following command: <code>mysql -u root -p<\/code>.<\/li>\n\n\n\n<li>Enter your root password to connect to the MySQL server.<\/li>\n\n\n\n<li>Use the <strong>GRANT<\/strong> statement to assign specific privileges to a user. Privileges can be granted for specific databases, tables, or even columns. Here are some common examples:\n<ol class=\"wp-block-list\">\n<li>Grant all privileges on a specific database (This command grants all privileges on the <strong>exampledb<\/strong> database to the user <strong>newuser<\/strong> connecting from <strong>localhost<\/strong>): <code>GRANT ALL PRIVILEGES ON exampledb.* TO 'newuser'@'localhost';<\/code><\/li>\n\n\n\n<li>Grant specific privileges on a specific database (This command grants only the <strong>SELECT<\/strong>, <strong>INSERT<\/strong>, and <strong>UPDATE<\/strong> privileges on the <strong>exampledb<\/strong> database to the user <strong>newuser<\/strong> connecting from <strong>localhost<\/strong>): <code>GRANT SELECT, INSERT, UPDATE ON exampledb.* TO 'newuser'@'localhost';<\/code><\/li>\n\n\n\n<li>Grant all privileges on all databases (This command grants all privileges on all databases to the user <strong>newuser<\/strong> connecting from <strong>localhost<\/strong>. The <strong>WITH GRANT OPTION<\/strong> allows the user to grant privileges to other users): <code>GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost' WITH GRANT OPTION;<\/code><\/li>\n\n\n\n<li>Grant privileges on specific tables (This command grants <strong>SELECT<\/strong> and <strong>INSERT<\/strong> privileges on the <strong>exampletable<\/strong> table within the <strong>exampledb<\/strong> database to the user <strong>newuser<\/strong>): <code>GRANT SELECT, INSERT ON exampledb.exampletable TO 'newuser'@'localhost';<\/code><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>To apply the changes, use the <strong>FLUSH PRIVILEGES<\/strong> command: <code>FLUSH PRIVILEGES;<\/code><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">How to See Privileges for a MySQL User<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the MySQL server as the root user. Enter the following command: <code>mysql -u root -p<\/code>.<\/li>\n\n\n\n<li>Enter your root password to connect to the MySQL server.<\/li>\n\n\n\n<li>The <strong>SHOW GRANTS<\/strong> statement is used to display the privileges granted to a specific user. To see the privileges for a particular user, use the following command, replacing <strong>newuser<\/strong> with the username and <strong>localhost<\/strong> with the host from which the user connects: <code>SHOW GRANTS FOR 'newuser'@'localhost';<\/code><\/li>\n\n\n\n<li>Carefully review the privileges listed to make sure the user has the correct permissions. If any adjustments are needed, you can modify the user&#8217;s privileges using the <strong>GRANT<\/strong> or <strong>REVOKE<\/strong> statements, which we&#8217;ll cover in the next sections.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">How to Modify Permissions for a MySQL User<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the MySQL server as the root user. Enter the following command: <code>mysql -u root -p<\/code>.<\/li>\n\n\n\n<li>Enter your root password to connect to the MySQL server.<\/li>\n\n\n\n<li>To grant additional privileges to a user, use the <strong>GRANT<\/strong> statement. For example, to grant the <strong>UPDATE<\/strong> privilege on the <strong>exampledb<\/strong> database to <strong>newuser<\/strong> connecting from <strong>localhost<\/strong>, use: <code>GRANT UPDATE ON exampledb.* TO 'newuser'@'localhost';<\/code><\/li>\n\n\n\n<li>To remove specific privileges from a user, use the <strong>REVOKE<\/strong> statement. For example, to revoke the <strong>INSERT<\/strong> privilege on the <strong>exampledb<\/strong> database from <strong>newuser<\/strong> connecting from <strong>localhost<\/strong>, use: <code>REVOKE INSERT ON exampledb.* FROM 'newuser'@'localhost';<\/code><\/li>\n\n\n\n<li>After using either <strong>GRANT<\/strong> or <strong>REVOKE<\/strong>, remember to apply changes by using the <strong>FLUSH PRIVILEGES<\/strong> command: <code>FLUSH PRIVILEGES;<\/code><\/li>\n<\/ol>\n\n\n\n<p>If you need to completely change a user&#8217;s privileges, it might be easier to revoke <em>all<\/em> their existing privileges first and then grant the new set of permissions. To revoke all privileges from a user, use: <code>REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'newuser'@'localhost';<\/code><\/p>\n\n\n\n<p>Then, grant the new set of privileges as needed: <code>GRANT SELECT, UPDATE ON exampledb.* TO 'newuser'@'localhost';<\/code><\/p>\n\n\n\n<p>Don\u2019t forget to flush the privileges after making these changes: <code>FLUSH PRIVILEGES;<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How to Delete a MySQL User<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the MySQL server as the root user. Enter the following command: <code>mysql -u root -p<\/code>.<\/li>\n\n\n\n<li>Enter your root password to connect to the MySQL server.<\/li>\n\n\n\n<li>Use the <strong>DROP USER<\/strong> statement to delete the user account. Replace <strong>newuser<\/strong> with the username and <strong>localhost<\/strong> with the host from which the user connects: <code>DROP USER 'newuser'@'localhost';<\/code><\/li>\n\n\n\n<li>If the user can connect from any host, use: <code>DROP USER 'newuser'@'%';<\/code><\/li>\n\n\n\n<li>Before deleting a user, it\u2019s good practice to make sure that no objects (like triggers or procedures) depend on the user. If you do this, you won&#8217;t get any unexpected problems after the user is removed. You can review dependent objects in your database and reassign ownership if necessary.<\/li>\n\n\n\n<li>Although the <strong>DROP USER<\/strong> statement removes the user account and its privileges, it\u2019s wise to flush the privileges to be sure all changes are immediately applied: <code>FLUSH PRIVILEGES;<\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">How to Show Users for a MySQL Database<\/h3>\n\n\n\n<p><strong>Viewing all users in your MySQL database is a useful way to manage and audit user accounts. <\/strong>Then you&#8217;ll know who&#8217;s got access to your database and what their permissions are.<\/p>\n\n\n\n<p>If you&#8217;re familiar with MySQL commands, you might think there&#8217;s a <strong>SHOW USERS<\/strong> command \u2014\u00a0similar to the <strong>SHOW DATABASES<\/strong> or <strong>SHOW TABLES<\/strong> commands you probably already know and use. However, <strong>SHOW USERS<\/strong> doesn&#8217;t exist.<\/p>\n\n\n\n<p>So how do you see all your database users? Follow these steps.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the MySQL server as the root user. Enter the following command: <code>mysql -u root -p<\/code>.<\/li>\n\n\n\n<li>Enter your root password to connect to the MySQL server.<\/li>\n\n\n\n<li>MySQL stores user account information in the <strong>mysql.user<\/strong> table. To view all user accounts, you can run the following SQL query to display a list of all users and the hosts from which they can connect: <code>SELECT user, host FROM mysql.user;<\/code><\/li>\n\n\n\n<li>If you need more detailed information about each user, such as their privileges or other settings, you can query additional columns from the <strong>mysql.user<\/strong> table. For example: <code>SELECT user, host, authentication_string, plugin FROM mysql.user;<\/code><\/li>\n\n\n\n<li>To filter and view specific users, you can add a <strong>WHERE<\/strong> clause to your query. For example, to view users connecting from <strong>localhost<\/strong>, use: <code>SELECT user, host FROM mysql.user WHERE host = 'localhost';<\/code><\/li>\n<\/ol>\n\n\n\n<h2 id=\"h2_managing-users-with-dreamhost\" class=\"wp-block-heading\">Managing Users With DreamHost<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1260\" height=\"1806\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql.webp\" alt=\"DreamHost control panel menu showing options including Home, Websites, and MySQL Databases highlighted in blue.\" class=\"wp-image-48262 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql.webp 1260w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-209x300.webp 209w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-714x1024.webp 714w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-768x1101.webp 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-1072x1536.webp 1072w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-600x860.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-1200x1720.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-730x1046.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-784x1124.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/03_dh_panel_for_mysql-877x1257.webp 877w\" data-sizes=\"(max-width: 1260px) 100vw, 1260px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1260px; --smush-placeholder-aspect-ratio: 1260\/1806;\" \/><\/figure>\n\n\n\n<p>If the idea of using command-line tools seems daunting, the DreamHost panel offers a user-friendly alternative for managing MySQL users.<\/p>\n\n\n\n<p>The DreamHost panel is a web-based interface that simplifies database management tasks, so you don&#8217;t have to use command prompts.<\/p>\n\n\n\n<p>For detailed tutorials on accessing your database, adding and deleting users, managing privileges, and more, visit our <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/categories\/202198388-MySQL-Databases\" target=\"_blank\" rel=\"noreferrer noopener\">Knowledge Base page for MySQL databases<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2400\" height=\"1800\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base.webp\" alt=\"Tablet displaying DreamHost Knowledge Base page on MySQL Databases, with icons of chat bubbles, servers, and users around it.\" class=\"wp-image-48264 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base.webp 2400w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-300x225.webp 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-1024x768.webp 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-768x576.webp 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-1536x1152.webp 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-2048x1536.webp 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-600x450.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-1200x900.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-730x548.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-1460x1095.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-784x588.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-1568x1176.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-877x658.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/04_dh_knowledge_base-1754x1316.webp 1754w\" data-sizes=\"(max-width: 2400px) 100vw, 2400px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 2400px; --smush-placeholder-aspect-ratio: 2400\/1800;\" \/><\/figure>\n\n\n\n<p>And if you&#8217;re looking for reliable managed hosting for your website that not only makes database management straightforward with an intuitive control panel, but also offers free migration, 24\/7 support, and uptime guarantees \u2014 you need DreamHost.<\/p>\n\n\n\n<p>Check out <a href=\"https:\/\/www.dreamhost.com\/hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">our affordable hosting plans<\/a> and see why millions of people and businesses choose us!<\/p>\n\n\n\n\n<div class=\"article-cta-shared article-cta-small article-cta--product\">\n\t<div class=\"tr-img-wrap-outer jsLoading\"><img decoding=\"async\" class=\"js-img-lazy \" src=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/lazy-loading-transparent.webp\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/03\/product-cta-dedicated-hosting-877x586.webp 1x, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/03\/product-cta-dedicated-hosting.webp 2x\"  \/><\/div>\n\n\t<a href='https:\/\/www.dreamhost.com\/hosting\/dedicated\/' class='link-top' target='_blank' rel='noopener noreferrer'>\n\t\t<span>Dedicated Hosting<\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\" width=\"15\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n\n\t<div class=\"content-btm\">\n\t\t<h2 class=\"h2--md\">\n\t\t\tUltimate in Power, Security, and Control\n\t\t<\/h2>\n\t\t<p class=\"p--md\">\n\t\t\tDedicated servers from DreamHost use the best hardware\r\nand software available to ensure your site is always up, and always fast.\n\t\t<\/p>\n\n\t\t        <a\n            href=\"https:\/\/www.dreamhost.com\/hosting\/dedicated\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            See More                    <\/a>\n\n\t<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Learn how to create and manage MySQL users step by step with our guide. Understand user privileges, security best practices, and more \u2014 let\u2019s dive in.<\/p>\n","protected":false},"author":1081,"featured_media":48251,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_metadesc":"Learn how to create and manage MySQL users step by step with our guide. Understand user privileges, security best practices, and more \u2014 let\u2019s dive in.","toc_headlines":"[[\"h-what-is-a-mysql-database\",\"What is a MySQL Database?\"],[\"h-mysql-user-accounts-explained\",\"MySQL User Accounts Explained\"],[\"h2_how-to-manage-your-mysql-users-two-methods\",\"How to Manage Your MySQL Users (Two Methods)\"],[\"h2_managing-users-with-dreamhost\",\"Managing Users With DreamHost\"]]","hide_toc":false,"footnotes":""},"categories":[804],"tags":[],"class_list":["post-48250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Create and Manage MySQL Users - DreamHost<\/title>\n<meta name=\"description\" content=\"Learn how to create and manage MySQL users step by step with our guide. Understand user privileges, security best practices, and more \u2014 let\u2019s dive in.\" \/>\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-dev.dreamhost.com\/blog\/mysql-users\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mastering MySQL User Management: A Comprehensive Guide\" \/>\n<meta property=\"og:description\" content=\"Explore essential strategies for creating and managing MySQL users. Discover how to handle user privileges and implement security best practices for optimal database control.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-29T14:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-21T23:18:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/1220x628_ogimage_manage_mysql_users.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"942\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Alejandro Granata\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Mastering MySQL User Management: A Comprehensive Guide\" \/>\n<meta name=\"twitter:description\" content=\"Explore essential strategies for creating and managing MySQL users. Discover how to handle user privileges and implement security best practices for optimal database control.\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alejandro Granata\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create and Manage MySQL Users - DreamHost","description":"Learn how to create and manage MySQL users step by step with our guide. Understand user privileges, security best practices, and more \u2014 let\u2019s dive in.","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-dev.dreamhost.com\/blog\/mysql-users\/","og_locale":"en_US","og_type":"article","og_title":"Mastering MySQL User Management: A Comprehensive Guide","og_description":"Explore essential strategies for creating and managing MySQL users. Discover how to handle user privileges and implement security best practices for optimal database control.","og_url":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2024-07-29T14:00:00+00:00","article_modified_time":"2025-05-21T23:18:04+00:00","og_image":[{"width":1800,"height":942,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/1220x628_ogimage_manage_mysql_users.webp","type":"image\/webp"}],"author":"Alejandro Granata","twitter_card":"summary_large_image","twitter_title":"Mastering MySQL User Management: A Comprehensive Guide","twitter_description":"Explore essential strategies for creating and managing MySQL users. Discover how to handle user privileges and implement security best practices for optimal database control.","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Alejandro Granata","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#article","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/"},"author":{"name":"Alejandro Granata","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/8bfafd9aede4ad5a3bca7f83b60e3f72"},"headline":"How to Create and Manage MySQL Users","datePublished":"2024-07-29T14:00:00+00:00","dateModified":"2025-05-21T23:18:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/"},"wordCount":2000,"publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/1460x1095_blog_hero_manage_mysql_users.webp","articleSection":["Web Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/","url":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/","name":"How to Create and Manage MySQL Users - DreamHost","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#primaryimage"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/1460x1095_blog_hero_manage_mysql_users.webp","datePublished":"2024-07-29T14:00:00+00:00","dateModified":"2025-05-21T23:18:04+00:00","description":"Learn how to create and manage MySQL users step by step with our guide. Understand user privileges, security best practices, and more \u2014 let\u2019s dive in.","breadcrumb":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#primaryimage","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/1460x1095_blog_hero_manage_mysql_users.webp","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/07\/1460x1095_blog_hero_manage_mysql_users.webp","width":2190,"height":1643,"caption":"Learn how to create and manage MySQL users step by step with our guide. Understand user privileges, security best practices, and more \u2014 let\u2019s dive in."},{"@type":"BreadcrumbList","@id":"https:\/\/www-dev.dreamhost.com\/blog\/mysql-users\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dhblog.dream.press\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create and Manage MySQL Users"}]},{"@type":"WebSite","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website","url":"https:\/\/www-dev.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www-dev.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www-dev.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/8bfafd9aede4ad5a3bca7f83b60e3f72","name":"Alejandro Granata","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/06\/Alejandro-150x150.jpg","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/06\/Alejandro-150x150.jpg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2024\/06\/Alejandro-150x150.jpg","caption":"Alejandro Granata"},"description":"Alex is one of our WordPress specialists at DreamHost. He is responsible for providing technical support, optimization tips, and assisting customers with internal migrations. In his free time, he enjoys cooking, playing videogames, and reading. Follow Alex on LinkedIn: https:\/\/www.linkedin.com\/in\/agranata\/","sameAs":["https:\/\/www.linkedin.com\/in\/agranata\/"],"url":"https:\/\/www-dev.dreamhost.com\/blog\/author\/alejandrogranata\/"}]}},"lang":"en","translations":{"en":48250,"es":48292,"pt":51866,"de":51869,"pl":54791,"ru":54833,"uk":54837,"it":67826,"fr":69245,"nl":69274},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/48250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1081"}],"replies":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/comments?post=48250"}],"version-history":[{"count":7,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/48250\/revisions"}],"predecessor-version":[{"id":48269,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/48250\/revisions\/48269"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/48251"}],"wp:attachment":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=48250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=48250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=48250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}