Fix ansible core 2.20 and supported OS list
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
+3
-3
@@ -6,14 +6,14 @@
|
|||||||
ansible.builtin.service_facts:
|
ansible.builtin.service_facts:
|
||||||
- name: 'ensure_mariadb.service_reload'
|
- name: 'ensure_mariadb.service_reload'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ansible_service_mgr == 'systemd'
|
- ansible_facts["service_mgr"] == 'systemd'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: 'yes'
|
daemon_reload: 'yes'
|
||||||
- name: 'ensure_mariadb.service_restart'
|
- name: 'ensure_mariadb.service_restart'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
- ensure_mariadb.service_list is defined
|
- ensure_mariadb.service_list is defined
|
||||||
- ensure_mariadb.service_list is iterable
|
- ensure_mariadb.service_list is iterable
|
||||||
|
|||||||
+17
-17
@@ -2,36 +2,36 @@
|
|||||||
# tasks file for ensure_mariadb
|
# tasks file for ensure_mariadb
|
||||||
- name: 'include variables'
|
- name: 'include variables'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
include_vars:
|
include_vars:
|
||||||
file: '{{ lookup("first_found", findme ) }}'
|
file: '{{ lookup("first_found", findme ) }}'
|
||||||
name: 'ensure_mariadb'
|
name: 'ensure_mariadb'
|
||||||
vars:
|
vars:
|
||||||
findme:
|
findme:
|
||||||
files:
|
files:
|
||||||
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml'
|
- '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
|
||||||
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-default.yml'
|
- '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
|
||||||
- '{{ ansible_distribution }}-default.yml'
|
- '{{ ansible_facts["distribution"] }}-default.yml'
|
||||||
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml'
|
- '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
|
||||||
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-default.yml'
|
- '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
|
||||||
- '{{ ansible_os_family }}-default.yml'
|
- '{{ ansible_facts["os_family"] }}-default.yml'
|
||||||
- 'default.yml'
|
- 'default.yml'
|
||||||
paths:
|
paths:
|
||||||
- '../vars/'
|
- '../vars/'
|
||||||
errors: 'ignore'
|
errors: 'ignore'
|
||||||
- name: 'package discovery'
|
- name: 'package discovery'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- packages is not defined
|
- ansible_facts["packages"] is not defined
|
||||||
ansible.builtin.package_facts:
|
ansible.builtin.package_facts:
|
||||||
- name: 'service discovery'
|
- name: 'service discovery'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- services is not defined
|
- ansible_facts["services"] is not defined
|
||||||
ansible.builtin.service_facts:
|
ansible.builtin.service_facts:
|
||||||
- name: 'ensure sysctl'
|
- name: 'ensure sysctl'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
- ensure_mariadb.sysctl_list is defined
|
- ensure_mariadb.sysctl_list is defined
|
||||||
- ensure_mariadb.sysctl_list is iterable
|
- ensure_mariadb.sysctl_list is iterable
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
- 'ensure_mariadb.service_restart'
|
- 'ensure_mariadb.service_restart'
|
||||||
- name: 'ensure packages'
|
- name: 'ensure packages'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
- ensure_mariadb.package_list is defined
|
- ensure_mariadb.package_list is defined
|
||||||
- ensure_mariadb.package_list is iterable
|
- ensure_mariadb.package_list is iterable
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
- 'ensure_mariadb.service_restart'
|
- 'ensure_mariadb.service_restart'
|
||||||
- name: 'ensure seboolean'
|
- name: 'ensure seboolean'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
- ensure_mariadb.seboolean_list is defined
|
- ensure_mariadb.seboolean_list is defined
|
||||||
- ensure_mariadb.seboolean_list is iterable
|
- ensure_mariadb.seboolean_list is iterable
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
- 'ensure_mariadb.service_restart'
|
- 'ensure_mariadb.service_restart'
|
||||||
- name: 'ensure configurations'
|
- name: 'ensure configurations'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
- ensure_mariadb.template_list is defined
|
- ensure_mariadb.template_list is defined
|
||||||
- ensure_mariadb.template_list is iterable
|
- ensure_mariadb.template_list is iterable
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
- 'ensure_mariadb.service_restart'
|
- 'ensure_mariadb.service_restart'
|
||||||
- name: 'ensure firewall'
|
- name: 'ensure firewall'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- packages["firewalld"] is defined
|
- packages["firewalld"] is defined
|
||||||
- packages["python3-firewall"] is defined
|
- packages["python3-firewall"] is defined
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
- 'ensure_mariadb.service_restart'
|
- 'ensure_mariadb.service_restart'
|
||||||
- name: 'ensure services'
|
- name: 'ensure services'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ensure_mariadb is defined
|
- ensure_mariadb is defined
|
||||||
- ensure_mariadb.service_list is defined
|
- ensure_mariadb.service_list is defined
|
||||||
- ensure_mariadb.service_list is iterable
|
- ensure_mariadb.service_list is iterable
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
# phpMyAdmin - Web based MySQL browser written in php
|
|
||||||
#
|
|
||||||
# Allows only localhost by default
|
|
||||||
#
|
|
||||||
# But allowing phpMyAdmin to anyone other than localhost should be considered
|
|
||||||
# dangerous unless properly secured by SSL
|
|
||||||
|
|
||||||
Alias /phpMyAdmin /usr/share/phpMyAdmin
|
|
||||||
Alias /phpmyadmin /usr/share/phpMyAdmin
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/>
|
|
||||||
AddDefaultCharset UTF-8
|
|
||||||
Require ssl
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/>
|
|
||||||
Require local
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# These directories do not require access over HTTP - taken from the original
|
|
||||||
# phpMyAdmin upstream tarball
|
|
||||||
#
|
|
||||||
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/templates/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# This configuration prevents mod_security at phpMyAdmin directories from
|
|
||||||
# filtering SQL etc. This may break your mod_security implementation.
|
|
||||||
#
|
|
||||||
#<IfModule mod_security.c>
|
|
||||||
# <Directory /usr/share/phpMyAdmin/>
|
|
||||||
# SecRuleInheritance Off
|
|
||||||
# </Directory>
|
|
||||||
#</IfModule>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# This group is read both both by the client and the server
|
|
||||||
# use it for options that affect everything
|
|
||||||
#
|
|
||||||
[client-server]
|
|
||||||
|
|
||||||
#
|
|
||||||
# include all files from the config directory
|
|
||||||
#
|
|
||||||
!includedir /etc/my.cnf.d
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=auth_gssapi.so
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# These two groups are read by the client library
|
|
||||||
# Use it for options that affect all clients, but not the server
|
|
||||||
#
|
|
||||||
[client]
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
# This group is not read by mysql client library,
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# use it for MariaDB-only client options
|
|
||||||
[client-mariadb]
|
|
||||||
ssl
|
|
||||||
ssl-verify-server-cert
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#plugin-load-add=cracklib_password_check.so
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
|
|
||||||
# and it will enable data at rest encryption. This is a simple way to
|
|
||||||
# ensure that everything that can be encrypted will be and your
|
|
||||||
# data will not leak unencrypted.
|
|
||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
|
|
||||||
# newer version and your edits will be lost. Instead, add your edits
|
|
||||||
# to the .cnf file after the !include directive.
|
|
||||||
#
|
|
||||||
# NOTE that you also need to install an encryption plugin for the encryption
|
|
||||||
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
|
|
||||||
#
|
|
||||||
[mariadb]
|
|
||||||
aria-encrypt-tables
|
|
||||||
encrypt-binlog
|
|
||||||
encrypt-tmp-disk-tables
|
|
||||||
encrypt-tmp-files
|
|
||||||
loose-innodb-encrypt-log
|
|
||||||
loose-innodb-encrypt-tables
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB server.
|
|
||||||
# Use it for options that only the server (but not clients) should see
|
|
||||||
#
|
|
||||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
|
||||||
#
|
|
||||||
|
|
||||||
# this is read by the standalone daemon and embedded servers
|
|
||||||
[server]
|
|
||||||
|
|
||||||
# this is only for the mysqld standalone daemon
|
|
||||||
# Settings user and group are ignored when systemd is used.
|
|
||||||
# If you need to run mysqld under a different user or group,
|
|
||||||
# customize your systemd unit file for mysqld/mariadb according to the
|
|
||||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
||||||
[mysqld]
|
|
||||||
datadir=/var/lib/mysql
|
|
||||||
socket=/var/lib/mysql/mysql.sock
|
|
||||||
log-error=/var/log/mariadb/mariadb.log
|
|
||||||
pid-file=/run/mariadb/mariadb.pid
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
ssl-cert=/etc/my.cnf.d/certificates/pubcert.epm
|
|
||||||
ssl-key=/etc/my.cnf.d/certificates/privkey.epm
|
|
||||||
tls-version=TLSv1.2,TLSv1.3
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# * Galera-related settings
|
|
||||||
#
|
|
||||||
[galera]
|
|
||||||
# Mandatory settings
|
|
||||||
#wsrep_on=ON
|
|
||||||
#wsrep_provider=
|
|
||||||
#wsrep_cluster_address=
|
|
||||||
#binlog_format=row
|
|
||||||
#default_storage_engine=InnoDB
|
|
||||||
#innodb_autoinc_lock_mode=2
|
|
||||||
#
|
|
||||||
# Allow server to accept connections on all interfaces.
|
|
||||||
#
|
|
||||||
#bind-address=0.0.0.0
|
|
||||||
#
|
|
||||||
# Optional setting
|
|
||||||
#wsrep_slave_threads=1
|
|
||||||
#innodb_flush_log_at_trx_commit=0
|
|
||||||
|
|
||||||
# this is only for embedded server
|
|
||||||
[embedded]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB servers, not by MySQL.
|
|
||||||
# If you use the same .cnf file for MySQL and MariaDB,
|
|
||||||
# you can put MariaDB-only options here
|
|
||||||
[mariadb]
|
|
||||||
|
|
||||||
# This group is only read by MariaDB-10.5 servers.
|
|
||||||
# If you use the same .cnf file for MariaDB of different versions,
|
|
||||||
# use this group for options that older servers don't understand
|
|
||||||
[mariadb-10.5]
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# These groups are read by MariaDB command-line tools
|
|
||||||
# Use it for options that affect only one utility
|
|
||||||
#
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
|
||||||
|
|
||||||
[mysqladmin]
|
|
||||||
|
|
||||||
[mysqlbinlog]
|
|
||||||
|
|
||||||
[mysqlcheck]
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
|
|
||||||
[mysqlimport]
|
|
||||||
|
|
||||||
[mysqlshow]
|
|
||||||
|
|
||||||
[mysqlslap]
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[mariadb]
|
|
||||||
#
|
|
||||||
# Uncomment line to enable
|
|
||||||
#
|
|
||||||
#plugin-load-add = ha_spider
|
|
||||||
|
|
||||||
# Read more at https://mariadb.com/kb/en/spider/
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* phpMyAdmin sample configuration, you can use it as base for
|
|
||||||
* manual configuration. For easier setup you can use setup/
|
|
||||||
*
|
|
||||||
* All directives are explained in documentation in the doc/ folder
|
|
||||||
* or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is needed for cookie based authentication to encrypt password in
|
|
||||||
* cookie. Needs to be 32 chars long.
|
|
||||||
*/
|
|
||||||
$cfg['blowfish_secret'] = '22ba7cd24c092bec00a83751012d0082'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Servers configuration
|
|
||||||
*/
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* First server
|
|
||||||
*/
|
|
||||||
$i++;
|
|
||||||
/* Authentication type */
|
|
||||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
|
||||||
/* Server parameters */
|
|
||||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
|
||||||
$cfg['Servers'][$i]['compress'] = false;
|
|
||||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* phpMyAdmin configuration storage settings.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* User used to manipulate with storage */
|
|
||||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controlport'] = '';
|
|
||||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
|
||||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
|
||||||
|
|
||||||
/* Storage database and tables */
|
|
||||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
|
||||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
|
||||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
|
||||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
|
||||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
|
||||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
|
||||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
|
||||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
|
||||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
|
||||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
|
||||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
|
||||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
|
||||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
|
||||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
|
||||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
|
||||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
|
||||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
|
||||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
|
||||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
|
||||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* End of servers configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Directories for saving/loading files from server
|
|
||||||
*/
|
|
||||||
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
|
|
||||||
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to display icons or text or both icons and text in table row
|
|
||||||
* action segment. Value can be either of 'icons', 'text' or 'both'.
|
|
||||||
* default = 'both'
|
|
||||||
*/
|
|
||||||
//$cfg['RowActionType'] = 'icons';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines whether a user should be displayed a "show all (records)"
|
|
||||||
* button in browse mode or not.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['ShowAll'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of rows displayed when browsing a result set. If the result
|
|
||||||
* set contains more rows, "Previous" and "Next".
|
|
||||||
* Possible values: 25, 50, 100, 250, 500
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['MaxRows'] = 50;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disallow editing of binary fields
|
|
||||||
* valid values are:
|
|
||||||
* false allow editing
|
|
||||||
* 'blob' allow editing except for BLOB fields
|
|
||||||
* 'noblob' disallow editing except for BLOB fields
|
|
||||||
* 'all' disallow editing
|
|
||||||
* default = 'blob'
|
|
||||||
*/
|
|
||||||
//$cfg['ProtectBinary'] = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Default language to use, if not browser-defined or user-defined
|
|
||||||
* (you find all languages in the locale folder)
|
|
||||||
* uncomment the desired line:
|
|
||||||
* default = 'en'
|
|
||||||
*/
|
|
||||||
//$cfg['DefaultLang'] = 'en';
|
|
||||||
//$cfg['DefaultLang'] = 'de';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How many columns should be used for table display of a database?
|
|
||||||
* (a value larger than 1 results in some information being hidden)
|
|
||||||
* default = 1
|
|
||||||
*/
|
|
||||||
//$cfg['PropertiesNumColumns'] = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to true if you want DB-based query history.If false, this utilizes
|
|
||||||
* JS-routines to display query history (lost by window close)
|
|
||||||
*
|
|
||||||
* This requires configuration storage enabled, see above.
|
|
||||||
* default = false
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryDB'] = true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When using DB-based query history, how many entries should be kept?
|
|
||||||
* default = 25
|
|
||||||
*/
|
|
||||||
//$cfg['QueryHistoryMax'] = 100;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not to query the user before sending the error report to
|
|
||||||
* the phpMyAdmin team when a JavaScript error occurs
|
|
||||||
*
|
|
||||||
* Available options
|
|
||||||
* ('ask' | 'always' | 'never')
|
|
||||||
* default = 'ask'
|
|
||||||
*/
|
|
||||||
//$cfg['SendErrorReports'] = 'always';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* You can find more configuration options in the documentation
|
|
||||||
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
|
|
||||||
*/
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=mkdir -p /etc/my.cnf.d/certificates
|
|
||||||
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ mariadb_vhost }}/*.pem /etc/my.cnf.d/certificates/'
|
|
||||||
ExecStartPost=chown -R mysql:mysql /etc/my.cnf.d/certificates
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Copy TLS Certificates for Mariadb
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=5min
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=mariadb.service
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, the
|
|
||||||
# best way is to:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket
|
|
||||||
# '%n' expands to 'Full unit name'; man systemd.unit
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Multi instance version of MariaDB. For if you run mutiple verions at once.
|
|
||||||
# Also used for mariadb@bootstrap to bootstrap Galera.
|
|
||||||
#
|
|
||||||
# To use multi instance variant, use [mariadbd.INSTANCENAME] as sections in
|
|
||||||
# /etc/@my.cnf to change per instance settings. A minimumal necessary
|
|
||||||
# configuration items to change to avoid conflicts between instances is:
|
|
||||||
#
|
|
||||||
# [mariadbd.instancename]
|
|
||||||
# # TCP port to make available for clients
|
|
||||||
# port=3306
|
|
||||||
# # Socket to make available for clients
|
|
||||||
# socket=/tmp/mariadb-instancename.sock
|
|
||||||
# # Where MariaDB should store all its data
|
|
||||||
# datadir=/usr/local/mariadb-instancename/data
|
|
||||||
#
|
|
||||||
# and start the service via:
|
|
||||||
#
|
|
||||||
# root> systemctl start mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# It's not recommended to modify this file in-place, because it will be
|
|
||||||
# overwritten during package upgrades. If you want to customize, for
|
|
||||||
# all instances, the best way is:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@.service
|
|
||||||
#
|
|
||||||
# Then add additonal directives under a section (probably [Service]).
|
|
||||||
#
|
|
||||||
# If you only want to change a specific instance:
|
|
||||||
#
|
|
||||||
# root> systemctl edit mariadb@{instancename}.server
|
|
||||||
#
|
|
||||||
# For more info about custom unit files, see systemd.unit(5) or
|
|
||||||
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
||||||
#
|
|
||||||
# For example, if you want to increase MariaDB's open-files-limit to 10000,
|
|
||||||
# you need to increase systemd's LimitNOFILE setting, use the contents below:
|
|
||||||
#
|
|
||||||
# [Service]
|
|
||||||
# LimitNOFILE=10000
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MariaDB 10.5 database server
|
|
||||||
Documentation=man:mariadbd(8)
|
|
||||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Alias=mysql.service
|
|
||||||
Alias=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
User=mysql
|
|
||||||
Group=mysql
|
|
||||||
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-check-socket --defaults-group-suffix=.%I
|
|
||||||
ExecStartPre=/usr/libexec/mariadb-prepare-db-dir --defaults-group-suffix=.%I %n
|
|
||||||
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb@.service.d/MY_SPECIAL.conf
|
|
||||||
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
|
|
||||||
# per bug #547485
|
|
||||||
ExecStart=/usr/libexec/mariadbd --defaults-group-suffix=.%I --basedir=/usr $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
|
||||||
ExecStartPost=/usr/libexec/mariadb-check-upgrade --defaults-group-suffix=.%I
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
|
||||||
# See also bind-address MariaDB option.
|
|
||||||
PrivateNetwork=false
|
|
||||||
|
|
||||||
KillSignal=SIGTERM
|
|
||||||
|
|
||||||
# Don't want to see an automated SIGKILL ever
|
|
||||||
SendSIGKILL=no
|
|
||||||
|
|
||||||
# Restart crashed server only, on-failure would also restart, for example, when
|
|
||||||
# my.cnf contains unknown option
|
|
||||||
Restart=on-abort
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
UMask=007
|
|
||||||
|
|
||||||
# Give a reasonable amount of time for the server to start up/shut down
|
|
||||||
TimeoutSec=300
|
|
||||||
|
|
||||||
# Place temp files in a secure directory, not /tmp
|
|
||||||
PrivateTmp=true
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user