{"id":4724,"date":"2018-10-24T18:37:37","date_gmt":"2018-10-24T18:37:37","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/10\/24\/what-are-database-user-privileges\/"},"modified":"2021-08-16T22:24:19","modified_gmt":"2021-08-17T02:24:19","slug":"what-are-database-user-privileges","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/","title":{"rendered":"What are Database User Privileges?"},"content":{"rendered":"<p><a href=\"\/support\/website\/create-database\/\" target=\"_blank\" title=\"Click here to navigate to our guide and learn how to create a database using cPanel.\" rel=\"noopener\"><strong>Databases<\/strong><\/a> are created and maintained using <em>MySQL<\/em>. Another MySQL function is to verify credentials and permissions.<\/p>\n<p>First, to initiate a <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/setting-up-a-remote-mysql-connection-in-cpanel\/\" target=\"_blank\" title=\"Click here to navigate to our guide and learn howt to make a connection to a database.\" rel=\"noopener\">connection to a database<\/a>, MySQL must authenticate a <strong>database user<\/strong> and password combination (as well as the <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/connection-access.html\" rel=\"noopener\" target=\"_blank\" title=\"Click here to navigate to the MySQL documentation website to learn more.\">hostname from which the request was made<\/a>).<\/p>\n<p>Once the connection is authorized, commands to manipulate a particular database are validated. During validation, <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/request-access.html\" rel=\"noopener\" target=\"_blank\" title=\"Click here to navigate to the MySQL documentation website to learn more.\">MySQL checks that privileges have been granted<\/a> to the specified <strong>database<\/strong> for the <em>database user<\/em>.<\/p>\n<p>The database user privileges need to be granted before MySQL will allow that user to execute the request on the database. MySQL maintains these privileges in its own database table <code>mysql<\/code>.<\/p>\n<h2>Common Privileges<\/h2>\n<p>The table below displays the most common <strong>MySQL user privileges<\/strong> that can be <em>assigned to a database user<\/em>.<\/p>\n<table class=\"table table-striped table-bordered table-hover\">\n<tbody>\n<tr>\n<th colspan=\"3\" style=\"text-align:center\">MySQL Privileges<\/th>\n<\/tr>\n<tr>\n<td>ALTER<\/td>\n<td>DELETE<\/td>\n<td>LOCK TABLES<\/td>\n<\/tr>\n<tr>\n<td>ALTER ROUTINE<\/td>\n<td>DROP<\/td>\n<td>REFERENCES<\/td>\n<\/tr>\n<tr>\n<td>CREATE<\/td>\n<td>EVENT<\/td>\n<td>SELECT<\/td>\n<\/tr>\n<tr>\n<td>CREATE ROUTINE<\/td>\n<td>EXECUTE<\/td>\n<td>SHOW VIEW<\/td>\n<\/tr>\n<tr>\n<td>CREATE TEMPORARY TABLES<\/td>\n<td>INDEX<\/td>\n<td>TRIGGER<\/td>\n<\/tr>\n<tr>\n<td>CREATE VIEW<\/td>\n<td>INSERT<\/td>\n<td>UPDATE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To learn more about <strong>Database User Privileges<\/strong> check out the <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/privileges-provided.html\" rel=\"noopener\" target=\"_blank\" title=\"Click here to navigate to the MySQL documentation website to learn more.\">official MySQL documentation here<\/a>. You can also learn how to create a <a href=\"\/support\/server\/databases\/create-a-mysql-database\/\" target=\"_blank\" title=\"Click here to navigate to our guide and learn how to use MySQL from the command line.\" rel=\"noopener\">database user and assign it privileges from the command line<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Databases are created and maintained using MySQL. Another MySQL function is to verify credentials and permissions. First, to initiate a connection to a database, MySQL must authenticate a database user and password combination (as well as the hostname from which the request was made). Once the connection is authorized, commands to manipulate a particular database<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\"> Read More ><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288,4305],"tags":[],"class_list":["post-4724","post","type-post","status-publish","format-standard","hentry","category-website","category-databases"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What are Database User Privileges? | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn more about MySQL privileges and how they are used.\" \/>\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.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are Database User Privileges? | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn more about MySQL privileges and how they are used.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-24T18:37:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T02:24:19+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\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.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\"},\"headline\":\"What are Database User Privileges?\",\"datePublished\":\"2018-10-24T18:37:37+00:00\",\"dateModified\":\"2021-08-17T02:24:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\"},\"wordCount\":188,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\",\"Working with Databases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\",\"name\":\"What are Database User Privileges? | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-10-24T18:37:37+00:00\",\"dateModified\":\"2021-08-17T02:24:19+00:00\",\"description\":\"Learn more about MySQL privileges and how they are used.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What are Database User Privileges?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are Database User Privileges? | InMotion Hosting","description":"Learn more about MySQL privileges and how they are used.","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.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/","og_locale":"en_US","og_type":"article","og_title":"What are Database User Privileges? | InMotion Hosting","og_description":"Learn more about MySQL privileges and how they are used.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-10-24T18:37:37+00:00","article_modified_time":"2021-08-17T02:24:19+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b"},"headline":"What are Database User Privileges?","datePublished":"2018-10-24T18:37:37+00:00","dateModified":"2021-08-17T02:24:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/"},"wordCount":188,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website","Working with Databases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/","name":"What are Database User Privileges? | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-10-24T18:37:37+00:00","dateModified":"2021-08-17T02:24:19+00:00","description":"Learn more about MySQL privileges and how they are used.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/what-are-database-user-privileges\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"What are Database User Privileges?"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4724"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4724\/revisions"}],"predecessor-version":[{"id":83581,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4724\/revisions\/83581"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}