Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract HTML from ReplicationGui::getHtmlForMasterConfiguration
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
99a853e
commit 6d0bdeb
Showing
2 changed files
with
36 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<fieldset> | ||
<legend>{% trans 'Master configuration' %}</legend> | ||
<p> | ||
{% trans %} | ||
This server is not configured as a master server in a replication process. You can choose from either replicating all databases and ignoring some of them (useful if you want to replicate a majority of the databases) or you can choose to ignore all databases by default and allow only certain databases to be replicated. Please select the mode: | ||
{% endtrans %} | ||
</p> | ||
<select name="db_type" id="db_type"> | ||
<option value="all">{% trans 'Replicate all databases; Ignore:' %}</option> | ||
<option value="ign">{% trans 'Ignore all databases; Replicate:' %}</option> | ||
</select> | ||
<p>{% trans 'Please select databases:' %}</p> | ||
{{ database_multibox|raw }} | ||
<p> | ||
{% trans %} | ||
Now, add the following lines at the end of [mysqld] section in your my.cnf and please restart the MySQL server afterwards. | ||
{% endtrans %} | ||
</p> | ||
<pre id="rep"></pre> | ||
<p> | ||
{% trans %} | ||
Once you restarted MySQL server, please click on Go button. Afterwards, you should see a message informing you, that this server <strong>is</strong> configured as master. | ||
{% endtrans %} | ||
</p> | ||
</fieldset> | ||
|
||
<fieldset class="tblFooters"> | ||
<form method="post" action="server_replication.php"> | ||
{{ get_hidden_inputs('', '') }} | ||
<input id="goButton" class="btn btn-primary" type="submit" value="{% trans 'Go' %}"> | ||
</form> | ||
</fieldset> |