Skip to content

Commit

Permalink
Add changes for 2d87e1c
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 19, 2024
1 parent be6be8b commit fcb82bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
16 changes: 8 additions & 8 deletions _sources/misc/add_new_instance_to_specify_cloud.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
1. Create Database
1. Review the SQL file before importing to the production server. Test the import locally before uploading to a production instance.
2. Ensure the new database has the same name as the subdomain the user wishes to use, remembering that underscores (`_`) are replaced with dashes (`-`) for the URL.
2. Create the database:
```sql
mariadb -u<master> -p<master_password> -e "CREATE DATABASE <dbname>;"
```
3. Upload and restore the existing database:
```
mariadb -u<master> -p<master_password> <dbname> < <dbname>.sql
```
3. Create the database:
```sql
mariadb -u<master> -p<master_password> -e "CREATE DATABASE <dbname>;"
```
4. Upload and restore the existing database:
```
mariadb -u<master> -p<master_password> <dbname> < <dbname>.sql
```
4. **Note:** You may `GRANT ALL PRIVILEGES ON <dbname>.* TO <master_password>@'%';` if
master doesn't have access `FLUSH PRIVILEGES;`
2. DNS Registration:
Expand Down
12 changes: 5 additions & 7 deletions misc/add_new_instance_to_specify_cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,19 @@ <h1>Add new Specify instance to Specify Cloud<a class="headerlink" href="#add-ne
<h2>Example for <dbname><a class="headerlink" href="#example-for" title="Link to this heading"></a></h2>
<ol class="arabic">
<li><p>Create Database</p>
<ol class="arabic simple">
<ol class="arabic">
<li><p>Review the SQL file before importing to the production server. Test the import locally before uploading to a production instance.</p></li>
<li><p>Ensure the new database has the same name as the subdomain the user wishes to use, remembering that underscores (<code class="docutils literal notranslate"><span class="pre">_</span></code>) are replaced with dashes (<code class="docutils literal notranslate"><span class="pre">-</span></code>) for the URL.</p></li>
<li><p>Create the database:</p></li>
</ol>
<li><p>Create the database:</p>
<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="n">mariadb</span><span class="w"> </span><span class="o">-</span><span class="n">u</span><span class="o">&lt;</span><span class="n">master</span><span class="o">&gt;</span><span class="w"> </span><span class="o">-</span><span class="n">p</span><span class="o">&lt;</span><span class="n">master_password</span><span class="o">&gt;</span><span class="w"> </span><span class="o">-</span><span class="n">e</span><span class="w"> </span><span class="ss">&quot;CREATE DATABASE &lt;dbname&gt;;&quot;</span>
</pre></div>
</div>
<ol class="arabic simple" start="3">
<li><p>Upload and restore the existing database:</p></li>
</ol>
</li>
<li><p>Upload and restore the existing database:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">mariadb</span> <span class="o">-</span><span class="n">u</span><span class="o">&lt;</span><span class="n">master</span><span class="o">&gt;</span> <span class="o">-</span><span class="n">p</span><span class="o">&lt;</span><span class="n">master_password</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="n">dbname</span><span class="o">&gt;</span> <span class="o">&lt;</span> <span class="o">&lt;</span><span class="n">dbname</span><span class="o">&gt;.</span><span class="n">sql</span>
</pre></div>
</div>
<ol class="arabic simple" start="4">
</li>
<li><p><strong>Note:</strong> You may <code class="docutils literal notranslate"><span class="pre">GRANT</span> <span class="pre">ALL</span> <span class="pre">PRIVILEGES</span> <span class="pre">ON</span> <span class="pre">&lt;dbname&gt;.*</span> <span class="pre">TO</span> <span class="pre">&lt;master_password&gt;&#64;'%';</span></code> if
master doesn’t have access <code class="docutils literal notranslate"><span class="pre">FLUSH</span> <span class="pre">PRIVILEGES;</span></code></p></li>
</ol>
Expand Down

0 comments on commit fcb82bc

Please sign in to comment.