[doc] Настройка MediaWiki
Даниил Захаров
mr.danz at yandex.ru
Fri Mar 30 15:12:38 MSK 2018
1. Поставил сокет в /home/mysql/mysqld.sock ('mkfifo /home/mysql/mysqld.sock');
2. Выдал права директории 'chown -R mysql /home/mysql/';
3. На всякий случай выдал права непосредственно сокету 'sudo -u mysql chmod 0777 /home/mysql/mysqld.sock';
4. Проверил ll : prwxrwxrwx 1 mysql mysql 0 Mar 30 14:38 mysqld.sock -- все отлично;
5. Любое обращение к mysql (даже через --socket='/home/mysql/') заканчивается следующим:
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/home/mysql/' (111 "Connection refused")
6. Попытка запуска демона через 'sudo -u mysql service mysqld start' выдает:
> Failed to start mysqld.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
> See system logs and 'systemctl status mysqld.service' for details.
Отмечу, что, например, в /home/mysql/mysqld-init директива '--defaults-file' отсутствует. В любом случае, это неважно.
Так как стандартный файл настроек /etc/mysql/my.cnf пуст:
# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/
То предполагаю, что нет связи с базой данных MySQL.
Все файлы Wiki я залил в свою корневую папку: allMediaWiki.7z - копия движка с моего сервера,
mr-danz_compilers.sql - экспорт БД Wiki.
More information about the doc
mailing list