Код: Выделить всё
apt-get update
apt-get upgrade
Установка MySQL
Код: Выделить всё
apt-get install mariadb-client mariadb-client-core mariadb-common mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo mariadb-plugin-provider-snappy mariadb-server mariadb-server-core man-db mysql-common
phpmyadmin adminer
Код: Выделить всё
ss -tuln | grep :3306
Код: Выделить всё
mcedit /etc/mysql/debian.cnf
Код: Выделить всё
[client]
host = localhost
user = root
[mysql_upgrade]
host = localhost
user = root
Код: Выделить всё
mcedit /etc/mysql/debian-start
Код: Выделить всё
source /usr/share/mysql/debian-start.inc.sh
if [ -f /etc/default/mysql ]; then
. /etc/default/mysql
fi
if [ -f /etc/default/mariadb ]; then
. /etc/default/mariadb
fi
MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf"
MYUPGRADE="/usr/bin/mysql_upgrade --defaults-extra-file=/etc/mysql/debian.cnf --version-check --silent"
MYCHECK="/usr/bin/mysqlcheck --defaults-file=/etc/mysql/debian.cnf"
MYCHECK_SUBJECT="WARNING: mysqlcheck has found corrupt tables"
MYCHECK_PARAMS="--all-databases --fast --silent"
MYCHECK_RCPT="${MYCHECK_RCPT:-root}"
trap "" SIGHUP
(
upgrade_system_tables_if_necessary;
check_root_accounts;
check_for_crashed_tables;
) >&2 &
exit 0
Код: Выделить всё
mcedit /etc/mysql/mariadb.cnf
Код: Выделить всё
[client-server]
# port = 3306
socket = /run/mysqld/mysqld.sock
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/
Код: Выделить всё
mcedit /etc/mysql/conf.d/mysql.cnf
Код: Выделить всё
[mysql]
Код: Выделить всё
mcedit /etc/mysql/conf.d/mysqldump.cnf
Код: Выделить всё
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/50-client.cnf
Код: Выделить всё
[client]
[client-mariadb]
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/50-mysql-clients.cnf
Код: Выделить всё
[mysql]
[mysql_upgrade]
[mysqladmin]
[mysqlbinlog]
[mysqlcheck]
[mysqldump]
[mysqlimport]
[mysqlshow]
[mysqlslap]
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf
Код: Выделить всё
[mysqld_safe]
nice = 0
skip_log_error
syslog
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/50-server.cnf
Код: Выделить всё
[server]
[mysqld]
pid-file = /run/mysqld/mysqld.pid
basedir = /usr
bind-address = 127.0.0.1
expire_logs_days = 10
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
[embedded]
[mariadb]
[mariadb-10.11]
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/60-galera.cnf
Код: Выделить всё
[galera]
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/provider_bzip2.cnf
Код: Выделить всё
[server]
plugin_load_add=provider_bzip2
provider_bzip2=force_plus_permanent
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/provider_lz4.cnf
Код: Выделить всё
[server]
plugin_load_add=provider_lz4
provider_lz4=force_plus_permanent
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/provider_lzma.cnf
Код: Выделить всё
[server]
plugin_load_add=provider_lzma
provider_lzma=force_plus_permanent
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/provider_lzo.cnf
Код: Выделить всё
[server]
plugin_load_add=provider_lzo
provider_lzo=force_plus_permanent
Код: Выделить всё
mcedit /etc/mysql/mariadb.conf.d/provider_snappy.cnf
Код: Выделить всё
[server]
plugin_load_add=provider_snappy
provider_snappy=force_plus_permanent
Доменное Имя и Получение Сертификата для доменного имени (нашего сайта) Keenetic
Debian Установка PHP