aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/templates/server/replication/master_configuration.twig
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-09 10:55:03 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-09 13:09:38 +0100
commit04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa (patch)
tree5c691241355c943a3c68ddb06b8cf8c60aa11319 /srcs/phpmyadmin/templates/server/replication/master_configuration.twig
parent7e0d85db834d6351ed85d01e5126ac31dc510b86 (diff)
downloadft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.gz
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.bz2
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.zip
phpmyadmin working
Diffstat (limited to 'srcs/phpmyadmin/templates/server/replication/master_configuration.twig')
-rw-r--r--srcs/phpmyadmin/templates/server/replication/master_configuration.twig32
1 files changed, 32 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/templates/server/replication/master_configuration.twig b/srcs/phpmyadmin/templates/server/replication/master_configuration.twig
new file mode 100644
index 0000000..5243bac
--- /dev/null
+++ b/srcs/phpmyadmin/templates/server/replication/master_configuration.twig
@@ -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>