postfixadmin / fixing sql privileges
This commit is contained in:
parent
67ba9b7f15
commit
26f00c7265
@ -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;
|
||||
```
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
<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">'mail'</span><span class="o">@</span><span class="s1">'localhost'</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">'mail'</span><span class="o">@</span><span class="s1">'localhost'</span><span class="p">;</span>
|
||||
<span class="n">FLUSH</span> <span class="k">PRIVILEGES</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user