vim-castle/.vim/vimwiki/vimwiki_html/Server_Admin_MySQL.html

22 lines
624 B
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="Stylesheet" type="text/css" href="style.css">
<title>Server_Admin_MySQL</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h3 id="toc_0.0.1">Grant User Privileges</h3>
<p>
<code>GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON database.&lt;table|*&gt; TO '&lt;user&gt;'@'&lt;localhost|domain&gt;';</code>
</p>
<h3 id="toc_0.0.2">View User Privileges</h3>
<p>
<code>SHOW GRANTS FOR '&lt;user&gt;'@'&lt;localhost|domain&gt;';</code>
</p>
</body>
</html>