privileges.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>User management &mdash; phpMyAdmin 4.2.7.1 documentation</title>
  7. <link rel="stylesheet" href="_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '4.2.7.1',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="copyright" title="Copyright" href="copyright.html" />
  22. <link rel="top" title="phpMyAdmin 4.2.7.1 documentation" href="index.html" />
  23. <link rel="up" title="User Guide" href="user.html" />
  24. <link rel="next" title="Other sources of information" href="other.html" />
  25. <link rel="prev" title="Transformations" href="transformations.html" />
  26. </head>
  27. <body>
  28. <div class="related">
  29. <h3>Navigation</h3>
  30. <ul>
  31. <li class="right" style="margin-right: 10px">
  32. <a href="genindex.html" title="General Index"
  33. accesskey="I">index</a></li>
  34. <li class="right" >
  35. <a href="other.html" title="Other sources of information"
  36. accesskey="N">next</a> |</li>
  37. <li class="right" >
  38. <a href="transformations.html" title="Transformations"
  39. accesskey="P">previous</a> |</li>
  40. <li><a href="index.html">phpMyAdmin 4.2.7.1 documentation</a> &raquo;</li>
  41. <li><a href="user.html" accesskey="U">User Guide</a> &raquo;</li>
  42. </ul>
  43. </div>
  44. <div class="document">
  45. <div class="documentwrapper">
  46. <div class="bodywrapper">
  47. <div class="body">
  48. <div class="section" id="user-management">
  49. <h1>User management<a class="headerlink" href="#user-management" title="Permalink to this headline">¶</a></h1>
  50. <p>User management is the process of controlling which users are allowed to
  51. connect to the MySQL server and what permissions they have on each database.
  52. phpMyAdmin does not handle user management, rather it passes the username and
  53. password on to MySQL, which then determines whether a user is permitted to
  54. perform a particular action. Within phpMyAdmin, administrators have full
  55. control over creating users, viewing and editing privileges for existing users,
  56. and removing users.</p>
  57. <p>Within phpMyAdmin, user management is controlled via the <em class="guilabel">Users</em> link
  58. from the main page. Users can be created, edited, and removed.</p>
  59. <div class="section" id="creating-a-new-user">
  60. <h2>Creating a new user<a class="headerlink" href="#creating-a-new-user" title="Permalink to this headline">¶</a></h2>
  61. <p>To create a new user, click the <em class="guilabel">Add a new user</em> link near the bottom
  62. of the <em class="guilabel">Users</em> page (you must be a &#8220;superuser&#8221;, e.g., user &#8220;root&#8221;).
  63. Use the textboxes and drop-downs to configure the user to your particular
  64. needs. You can then select whether to create a database for that user and grant
  65. specific global privileges. Once you&#8217;ve created the user (by clicking Go), you
  66. can define that user&#8217;s permissions on a specific database (don&#8217;t grant global
  67. privileges in that case). In general, users do not need any global privileges
  68. (other than USAGE), only permissions for their specific database.</p>
  69. </div>
  70. <div class="section" id="editing-an-existing-user">
  71. <h2>Editing an existing user<a class="headerlink" href="#editing-an-existing-user" title="Permalink to this headline">¶</a></h2>
  72. <p>To edit an existing user, simply click the pencil icon to the right of that
  73. user in the <em class="guilabel">Users</em> page. You can then edit their global- and
  74. database-specific privileges, change their password, or even copy those
  75. privileges to a new user.</p>
  76. </div>
  77. <div class="section" id="deleting-a-user">
  78. <h2>Deleting a user<a class="headerlink" href="#deleting-a-user" title="Permalink to this headline">¶</a></h2>
  79. <p>From the <em class="guilabel">Users</em> page, check the checkbox for the user you wish to
  80. remove, select whether or not to also remove any databases of the same name (if
  81. they exist), and click Go.</p>
  82. </div>
  83. <div class="section" id="assigning-privileges-to-user-for-a-specific-database">
  84. <h2>Assigning privileges to user for a specific database<a class="headerlink" href="#assigning-privileges-to-user-for-a-specific-database" title="Permalink to this headline">¶</a></h2>
  85. <p>Users are assigned to databases by editing the user record (from the
  86. <em class="guilabel">Users</em> link on the home page) not from within the <em class="guilabel">Users</em>
  87. link under the table. If you are creating a user specifically for a given table
  88. you will have to create the user first (with no global privileges) and then go
  89. back and edit that user to add the table and privileges for the individual
  90. table.</p>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="sphinxsidebar">
  97. <div class="sphinxsidebarwrapper">
  98. <h3><a href="index.html">Table Of Contents</a></h3>
  99. <ul>
  100. <li><a class="reference internal" href="#">User management</a><ul>
  101. <li><a class="reference internal" href="#creating-a-new-user">Creating a new user</a></li>
  102. <li><a class="reference internal" href="#editing-an-existing-user">Editing an existing user</a></li>
  103. <li><a class="reference internal" href="#deleting-a-user">Deleting a user</a></li>
  104. <li><a class="reference internal" href="#assigning-privileges-to-user-for-a-specific-database">Assigning privileges to user for a specific database</a></li>
  105. </ul>
  106. </li>
  107. </ul>
  108. <h4>Previous topic</h4>
  109. <p class="topless"><a href="transformations.html"
  110. title="previous chapter">Transformations</a></p>
  111. <h4>Next topic</h4>
  112. <p class="topless"><a href="other.html"
  113. title="next chapter">Other sources of information</a></p>
  114. <h3>This Page</h3>
  115. <ul class="this-page-menu">
  116. <li><a href="_sources/privileges.txt"
  117. rel="nofollow">Show Source</a></li>
  118. </ul>
  119. <div id="searchbox" style="display: none">
  120. <h3>Quick search</h3>
  121. <form class="search" action="search.html" method="get">
  122. <input type="text" name="q" />
  123. <input type="submit" value="Go" />
  124. <input type="hidden" name="check_keywords" value="yes" />
  125. <input type="hidden" name="area" value="default" />
  126. </form>
  127. <p class="searchtip" style="font-size: 90%">
  128. Enter search terms or a module, class or function name.
  129. </p>
  130. </div>
  131. <script type="text/javascript">$('#searchbox').show(0);</script>
  132. </div>
  133. </div>
  134. <div class="clearer"></div>
  135. </div>
  136. <div class="related">
  137. <h3>Navigation</h3>
  138. <ul>
  139. <li class="right" style="margin-right: 10px">
  140. <a href="genindex.html" title="General Index"
  141. >index</a></li>
  142. <li class="right" >
  143. <a href="other.html" title="Other sources of information"
  144. >next</a> |</li>
  145. <li class="right" >
  146. <a href="transformations.html" title="Transformations"
  147. >previous</a> |</li>
  148. <li><a href="index.html">phpMyAdmin 4.2.7.1 documentation</a> &raquo;</li>
  149. <li><a href="user.html" >User Guide</a> &raquo;</li>
  150. </ul>
  151. </div>
  152. <div class="footer">
  153. &copy; <a href="copyright.html">Copyright</a> 2012 - 2014, The phpMyAdmin devel team.
  154. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
  155. </div>
  156. </body>
  157. </html>