diff --git a/content/postfixadmin.md b/content/postfixadmin.md index 00e4850..4627c6d 100644 --- a/content/postfixadmin.md +++ b/content/postfixadmin.md @@ -20,7 +20,7 @@ Since the database managed by Postfix Admin does not use the same schema as the ```sql CREATE DATABASE mailnew; -GRANT SELECT ON mailnew.* TO 'mail'@'localhost'; +GRANT ALL PRIVILEGES ON mailnew.* TO 'mail'@'localhost'; FLUSH PRIVILEGES; ``` diff --git a/output/postfix-admin.html b/output/postfix-admin.html index cf4273c..f296df4 100644 --- a/output/postfix-admin.html +++ b/output/postfix-admin.html @@ -119,7 +119,7 @@

Creating a new database

Since the database managed by Postfix Admin does not use the same schema as the one we've created in my previous tutorial, we'll have to create a new one. We will give all privileges on that database to the same user as before, 'mail'@'localhost'.

CREATE DATABASE mailnew;
-GRANT SELECT ON mailnew.* TO 'mail'@'localhost';
+GRANT ALL PRIVILEGES ON mailnew.* TO 'mail'@'localhost';
 FLUSH PRIVILEGES;
 
diff --git a/output/rss.xml b/output/rss.xml index 25c24b5..3cf6aaf 100644 --- a/output/rss.xml +++ b/output/rss.xml @@ -46,7 +46,7 @@ sqlbk<span class="o">()</span> <span class="o">{</span> <h1>Creating a new database</h1> <p>Since the database managed by Postfix Admin does not use the same schema as the one we've created in my previous tutorial, we'll have to create a new one. We will give all privileges on that database to the same user as before, <code>'mail'@'localhost'</code>.</p> <div class="highlight"><pre><span></span><span class="k">CREATE</span> <span class="k">DATABASE</span> <span class="n">mailnew</span><span class="p">;</span> -<span class="k">GRANT</span> <span class="k">SELECT</span> <span class="k">ON</span> <span class="n">mailnew</span><span class="p">.</span><span class="o">*</span> <span class="k">TO</span> <span class="s1">&#39;mail&#39;</span><span class="o">@</span><span class="s1">&#39;localhost&#39;</span><span class="p">;</span> +<span class="k">GRANT</span> <span class="k">ALL</span> <span class="k">PRIVILEGES</span> <span class="k">ON</span> <span class="n">mailnew</span><span class="p">.</span><span class="o">*</span> <span class="k">TO</span> <span class="s1">&#39;mail&#39;</span><span class="o">@</span><span class="s1">&#39;localhost&#39;</span><span class="p">;</span> <span class="n">FLUSH</span> <span class="k">PRIVILEGES</span><span class="p">;</span> </pre></div>