Jump to content

PapaRony

Forum Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by PapaRony

  1. 5 hours ago, TheBB said:
    
    ~ # 
    ~ # ln -s /opt/bin/php-cli /opt/bin/php
    ~ # 
    ~ # php -m
    [PHP Modules]
    Core
    date
    hash
    libxml
    pcre
    posix
    Reflection
    SPL
    standard
    zlib
    
    [Zend Modules]
    
    ~ # 

     

    нет, не обязательно.

    Огромнейшее Вам спасибо! Всё получилось! Указали вектор, направили на правильный путь. 🤝

  2. Попробовал так:
     

    ~ # cd /opt/share/www/nextcloud && sudo -u nobody php-cgi occ db:convert-filecache-bigint
    X-Powered-By: PHP/7.4.1
    Content-type: text/html; charset=UTF-8
    
    An unhandled exception has been thrown:
    TypeError: Return value of OC\AppFramework\Http\Request::getScriptName() must be of the type string, null returned in /opt/share/www/nextcloud/lib/private/AppFramework/Http/Request.php:836
    Stack trace:
    #0 /opt/share/www/nextcloud/lib/base.php(159): OC\AppFramework\Http\Request->getScriptName()
    #1 /opt/share/www/nextcloud/lib/base.php(582): OC::initPaths()
    #2 /opt/share/www/nextcloud/lib/base.php(1089): OC::init()
    #3 /opt/share/www/nextcloud/console.php(48): require_once('/opt/share/www/...')
    #4 /opt/share/www/nextcloud/occ(11): require_once('/opt/share/www/...')
    #5 {main}/opt/share/www/nextcloud #

    Как я понял, php подхватывает файл, но исполнение завершается с ошибкой. Может быть каких-то библиотек в системе не хватает, что-то нужно доустановить?

    Подскажите, если установлен php7-fpm, вот это обязательно нужно делать?

     On 6/1/2016 at 2:31 AM, TheBB said:

    Создать скрипт запуска S79php-fcgi и сделать его исполняемым

    
    #!/bin/sh
    
    export PHP_FCGI_CHILDREN=''
    
    ENABLED=yes
    PROCS=php-fcgi
    ARGS="-b /opt/var/run/php-fcgi.sock &"
    PREARGS=""
    DESC=$PROCS
    PATH=/opt/bin:/opt/sbin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    
    . /opt/etc/init.d/rc.func
     
    
    chmod +x /opt/etc/init.d/S79php-fcgi

     

  3. Кое что ещё обнаружил в работе PHP-FPM. Когда вводишь команду тестирования:

    php-fpm -t

    команда завершается с ошибкой "файл конфигурации php-fpm.conf не найден".

    2020-02-21_021109.png.a68b6e8f97deb74a8b6b56fff8f30a05.png

    Сделал так, правильно неправильно не знаю, но вроде как работает теперь команда php-fpm -t:

    1. Создал символическую ссылку @php7-fpm.conf на файл /opt/etc/php7-fpm.conf в папку root

    2. Переименовал её в @php-fpm.conf

    3. Переместил её обратно в /opt/etc

    Ошибка пропала

    2020-02-21_021254.png.d18ce48e33283adae263736f97465e03.png

  4. Добрый вечер!

    Развернул на Keenetic Giga Giga (KN-1010) Nextcloud. Пыхтит, скрепит но работает.

    Вопрос такой. В настройках Nexcloud в раздел "Общие сведения" при проверке безопасности и параметров выводятся рекомендации и ошибки, такие:

     
    Spoiler

     

    Предупреждения о текущей конфигурации.
    • Не настроена система кеширования. Для увеличения производительности сервера, по возможности, настройте memcache. Более подробная информация доступна в документации.
    • В базе данных отсутствуют некоторые индексы. Так как создание таких индексов может занять достаточно продолжительное время, оно должно быть запущено вручную. Для создания индексов необходимо запустить команду «occ db:add-missing-indices» во время работы сервера Nextcloud. При созданных индексах, как правило, запросы к базе данных выполняются значительно быстрее.
      • В таблице «oc_calendarobjects_props» отсутствует индекс «calendarobject_calid_index».
      • В таблице «oc_schedulingobjects» отсутствует индекс «schedulobj_principuri_index».
    • В системе не установлены рекомендуемые модули PHP. Для улучшения производительности и совместимости рекомендуется установить эти модули.
      • imagick
    • Некоторые индексы базы данных не были преобразованы в тип big int. Так как преобразование таких индексов может занять продолжительное время, оно должно быть запущенно вручную. Чтобы выполнить преобразование, необходимо включить режим обслуживания и запустить в терминале команду «occ db:convert-filecache-bigint». Дополнительные сведения приведены на соответствующей странице документации.
      • mounts.storage_id
      • mounts.root_id
      • mounts.mount_id

     

    •  

    На Debian проблему с индексами я решил способом как описано в документации (не помню дерево папок на Debian, но суть думаю будет понятна):
     

    cd /opt/share/www/nextcloud
    
    sudo -u www-data php occ db:convert-filecache-bigint

    Скрипт запускался и исправлял индексы.

    Но на Debian Nextcloud еле-еле ворочался. Снёс всё и настроил на Entware. Опять возникла проблема с индексами. Стал размышлять, если на Debian допустим чтоб посмотреть какие модули PHP установленны, нужно набрать команду:

    php -m

    на Entware такая команда не работает, но работает команда:

    php-fpm -m

    попробовал выполнить такую команду:
     

    cd /opt/share/www/nextcloud
    
    sudo -u nobody php-fpm occ db:convert-filecache-bigint

    не работает 😪. Подскажите пожалуйста, какую команду нужно использовать, что нужно делать. Скриншот командной строки прилагаю.

    2020-02-20_220850.png.9bb22ec0fd0968de28d5bc1f623cc0b9.png

    Ещё такой вопрос, есть ли альтернатива Nextcloud-у и ownCloud-у, чтоб работало как облачное хранилище?

  5. 5 hours ago, TheBB said:

    "Tab" key (автодополнение/атозавершение)

    список доступных

      Reveal hidden contents
    
    
    ~ # ls -1 /opt/bin/*maria*
    /opt/bin/mariabackup
    /opt/bin/mariadb
    /opt/bin/mariadb-access
    /opt/bin/mariadb-admin
    /opt/bin/mariadb-backup
    /opt/bin/mariadb-binlog
    /opt/bin/mariadb-check
    /opt/bin/mariadb-convert-table-format
    /opt/bin/mariadbd
    /opt/bin/mariadbd-multi
    /opt/bin/mariadb-dump
    /opt/bin/mariadb-dumpslow
    /opt/bin/mariadb-find-rows
    /opt/bin/mariadb-fix-extensions
    /opt/bin/mariadb-hotcopy
    /opt/bin/mariadb-import
    /opt/bin/mariadb-install-db
    /opt/bin/mariadb-plugin
    /opt/bin/mariadb-secure-installation
    /opt/bin/mariadb-setpermission
    /opt/bin/mariadb-show
    /opt/bin/mariadb-slap
    /opt/bin/mariadb-tzinfo-to-sql
    /opt/bin/mariadb-upgrade
    /opt/bin/mariadb-waitpid
    /opt/bin/wsrep_sst_mariabackup
    ~ # ls -1 /opt/bin/*mysql*
    /opt/bin/msql2mysql
    /opt/bin/mysql
    /opt/bin/mysqlaccess
    /opt/bin/mysqladmin
    /opt/bin/mysqlanalyze
    /opt/bin/mysqlbinlog
    /opt/bin/mysqlcheck
    /opt/bin/mysql_convert_table_format
    /opt/bin/mysqld
    /opt/bin/mysqld_multi
    /opt/bin/mysqldump
    /opt/bin/mysqldumpslow
    /opt/bin/mysql_find_rows
    /opt/bin/mysql_fix_extensions
    /opt/bin/mysqlhotcopy
    /opt/bin/mysqlimport
    /opt/bin/mysql_install_db
    /opt/bin/mysqloptimize
    /opt/bin/mysql_plugin
    /opt/bin/mysqlrepair
    /opt/bin/mysql_secure_installation
    /opt/bin/mysql_setpermission
    /opt/bin/mysqlshow
    /opt/bin/mysqlslap
    /opt/bin/mysql_tzinfo_to_sql
    /opt/bin/mysql_upgrade
    /opt/bin/mysql_waitpid
    /opt/bin/wsrep_sst_mysqldump
    ~ # 

     

    "perl" ставить надо

    Спасибо за ответ! Набрал mysql_ нажал TAB появился список как у Вас.

    5 hours ago, TheBB said:

    Тэк-с, "машка" поломана, запустил пересборку... (в скриптах интерпретаторы "sh" vs "perl" сломаны)

    Запустил opkg update потом opkg upgrade пакеты MariaDB обновились, стали доступны команды! Спасибо огромное!

     

    2020-02-20_012919.png

    • Thanks 1
  6. On 2/9/2020 at 6:39 PM, TheBB said:
      Reveal hidden contents

     

    
    
    BusyBox v1.31.1 () built-in shell (ash)
    
    ~ # opkg list-installed
    busybox - 1.31.1-1
    dropbear - 2019.78-2a
    entware-release - 1.0-2
    findutils - 4.7.0-1
    grep - 3.3-1
    ldconfig - 2.27-9
    libc - 2.27-9
    libgcc - 8.3.0-9
    libndm - 1.1.10-1a
    libpcre - 8.43-2
    libpthread - 2.27-9
    librt - 2.27-9
    libssp - 8.3.0-9
    libstdcpp - 8.3.0-9
    locales - 2.27-8
    ndmq - 1.0.2-5a
    opkg - 2019-06-14-dcbc142e-2
    opt-ndmsv2 - 1.0-12
    poorbox - 1.31.1-1
    terminfo - 6.1-5
    zoneinfo-asia - 2019c-1
    zoneinfo-europe - 2019c-1
    ~ # 
    ~ # opkg list | grep ^mariadb | cut -d' ' -f1 | xargs opkg install
    Installing mariadb-client (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-client_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-common (1.0-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-common_1.0-1_mipsel-3.4.ipk
    Installing libiconv-full (1.11.1-4) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libiconv-full_1.11.1-4_mipsel-3.4.ipk
    Installing libatomic (8.3.0-9) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libatomic_8.3.0-9_mipsel-3.4.ipk
    Installing zlib (1.2.11-3) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/zlib_1.2.11-3_mipsel-3.4.ipk
    Installing libopenssl (1.1.1d-2) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libopenssl_1.1.1d-2_mipsel-3.4.ipk
    Installing libncursesw (6.1-5) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libncursesw_6.1-5_mipsel-3.4.ipk
    Installing libncurses (6.1-5) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libncurses_6.1-5_mipsel-3.4.ipk
    Installing libedit (20191025-3.1-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libedit_20191025-3.1-1_mipsel-3.4.ipk
    Installing mariadb-client-base (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-client-base_10.4.10-1_mipsel-3.4.ipk
    Package mariadb-client-base (10.4.10-1) installed in root is up to date.
    Installing mariadb-client-extra (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-client-extra_10.4.10-1_mipsel-3.4.ipk
    Package mariadb-common (1.0-1) installed in root is up to date.
    Installing mariadb-server (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server_10.4.10-1_mipsel-3.4.ipk
    Installing libaio (0.3.112-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libaio_0.3.112-1_mipsel-3.4.ipk
    Installing liblzma (5.2.4-5) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/liblzma_5.2.4-5_mipsel-3.4.ipk
    Installing resolveip (2) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/resolveip_2_mipsel-3.4.ipk
    Installing mariadb-server-base (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-base_10.4.10-1_mipsel-3.4.ipk
    Package mariadb-server-base (10.4.10-1) installed in root is up to date.
    Installing mariadb-server-extra (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-extra_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-auth-ed25519 (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-auth-ed25519_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-auth-gssapi (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-auth-gssapi_10.4.10-1_mipsel-3.4.ipk
    Installing libuuid (2.34-2) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libuuid_2.34-2_mipsel-3.4.ipk
    
    ^CInterrupted. Writing out status database.              <=== сеть упала, пришлось прервать и перезапустить
    
    ~ # opkg list | grep ^mariadb | cut -d' ' -f1 | xargs opkg install
    Package mariadb-client (10.4.10-1) installed in root is up to date.
    Package mariadb-client-base (10.4.10-1) installed in root is up to date.
    Package mariadb-client-extra (10.4.10-1) installed in root is up to date.
    Package mariadb-common (1.0-1) installed in root is up to date.
    Package mariadb-server (10.4.10-1) installed in root is up to date.
    Package mariadb-server-base (10.4.10-1) installed in root is up to date.
    Package mariadb-server-extra (10.4.10-1) installed in root is up to date.
    Package mariadb-server-plugin-auth-ed25519 (10.4.10-1) installed in root is up to date.
    Installing mariadb-server-plugin-auth-gssapi (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-auth-gssapi_10.4.10-1_mipsel-3.4.ipk
    Installing libuuid (2.34-2) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libuuid_2.34-2_mipsel-3.4.ipk
    Installing libcomerr (1.45.4-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libcomerr_1.45.4-1_mipsel-3.4.ipk
    Installing libss (1.45.4-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libss_1.45.4-1_mipsel-3.4.ipk
    Installing krb5-libs (1.17-2) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/krb5-libs_1.17-2_mipsel-3.4.ipk
    Installing mariadb-server-plugin-auth-pam (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-auth-pam_10.4.10-1_mipsel-3.4.ipk
    Installing libpam (1.3.1-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libpam_1.3.1-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-auth-pam-v1 (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-auth-pam-v1_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-disks (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-disks_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-feedback (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-feedback_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-file-key-management (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-file-key-management_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-archive (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-archive_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-blackhole (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-blackhole_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-connect (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-connect_10.4.10-1_mipsel-3.4.ipk
    Installing libxml2 (2.9.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/libxml2_2.9.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-federated (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-federated_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-federatedx (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-federatedx_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-sphinx (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-sphinx_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-ha-spider (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-ha-spider_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-handlersocket (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-handlersocket_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-locales (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-locales_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-metadata-lock-info (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-metadata-lock-info_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-query-cache-info (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-query-cache-info_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-query-response-time (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-query-response-time_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-server-audit (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-server-audit_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-simple-password-check (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-simple-password-check_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-sql-errlog (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-sql-errlog_10.4.10-1_mipsel-3.4.ipk
    Installing mariadb-server-plugin-wsrep-info (10.4.10-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/mariadb-server-plugin-wsrep-info_10.4.10-1_mipsel-3.4.ipk
    Configuring libpam.
    Configuring libatomic.
    Configuring mariadb-common.
    Configuring libiconv-full.
    Configuring zlib.
    Configuring libopenssl.
    Configuring libaio.
    Configuring liblzma.
    Configuring resolveip.
    Configuring mariadb-server-base.
    Configuring mariadb-server.
    Configuring mariadb-server-plugin-auth-ed25519.
    Configuring mariadb-server-plugin-query-cache-info.
    Configuring mariadb-server-plugin-disks.
    Configuring mariadb-server-plugin-server-audit.
    Configuring libncursesw.
    Configuring libncurses.
    Configuring libedit.
    Configuring mariadb-client-base.
    Configuring mariadb-client.
    Configuring mariadb-server-plugin-wsrep-info.
    Configuring libuuid.
    Configuring libcomerr.
    Configuring libss.
    Configuring krb5-libs.
    Configuring mariadb-server-plugin-auth-pam.
    Configuring mariadb-server-plugin-ha-sphinx.
    Configuring mariadb-server-plugin-ha-blackhole.
    Configuring libxml2.
    Configuring mariadb-server-plugin-auth-gssapi.
    Configuring mariadb-server-extra.
    Configuring mariadb-server-plugin-metadata-lock-info.
    Configuring mariadb-server-plugin-file-key-management.
    Configuring mariadb-server-plugin-locales.
    Configuring mariadb-server-plugin-feedback.
    Configuring mariadb-server-plugin-sql-errlog.
    Configuring mariadb-client-extra.
    Configuring mariadb-server-plugin-simple-password-check.
    Configuring mariadb-server-plugin-ha-archive.
    Configuring mariadb-server-plugin-ha-spider.
    Configuring mariadb-server-plugin-ha-connect.
    Configuring mariadb-server-plugin-auth-pam-v1.
    Configuring mariadb-server-plugin-handlersocket.
    Configuring mariadb-server-plugin-ha-federatedx.
    Configuring mariadb-server-plugin-ha-federated.
    Configuring mariadb-server-plugin-query-response-time.
    ~ # 
    ~ # mysql_
    mysql_convert_table_format  mysql_fix_extensions        mysql_plugin                mysql_setpermission         mysql_upgrade
    mysql_find_rows             mysql_install_db            mysql_secure_installation   mysql_tzinfo_to_sql         mysql_waitpid
    ~ # mysql_install_db 
    Could not find plugin directory.
    Will continue with "/opt/lib/mariadb/plugin".
    WARNING: The host 'ХХХ' could not be looked up with /opt/bin/resolveip.
    This probably means that your libc libraries are not 100 % compatible
    with this binary MariaDB version. The MariaDB daemon, mysqld, should work
    normally with the exception that host name resolving will not work.
    This means that you should use IP addresses instead of hostnames
    when specifying MariaDB privileges !
    Installing MariaDB/MySQL system tables in '/opt/var/lib/mysql' ...
    2020-02-09 18:14:43 0 [ERROR] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
    2020-02-09 18:14:43 0 [Warning] InnoDB: Linux Native AIO disabled.
    OK
    
    To start mysqld at boot time you have to copy
    support-files/mysql.server to the right place for your system
    
    
    Two all-privilege accounts were created.
    One is root@localhost, it has no password, but you need to
    be system 'root' user to connect. Use, for example, sudo mysql
    The second is root@localhost, it has no password either, but
    you need to be the system 'root' user to connect.
    After connecting you can set the password, if you would need to be
    able to connect as any of these users with a password and without sudo
    
    See the MariaDB Knowledgebase at http://mariadb.com/kb or the
    MySQL manual for more instructions.
    
    You can start the MariaDB daemon with:
    cd '/opt' ; /opt/bin/mysqld_safe --datadir='/opt/var/lib/mysql'
    
    You can test the MariaDB daemon with mysql-test-run.pl
    cd '/opt/mysql-test' ; perl mysql-test-run.pl
    
    Please report any problems at http://mariadb.org/jira
    
    The latest information about MariaDB is available at http://mariadb.org/.
    You can find additional information about the MySQL part at:
    http://dev.mysql.com
    Consider joining MariaDB's strong and vibrant community:
    https://mariadb.org/get-involved/
    
    ~ # 
    ~ # mkdir /opt/var/run/mysqld
    ~ # 
    ~ # /opt/etc/init.d/S70mysqld start
    ~ # /opt/etc/init.d/S70mysqld check
    Usage: /opt/etc/init.d/S70mysqld {start|stop|restart|status}
    ~ # /opt/etc/init.d/S70mysqld status
    mysqld is already running
    ~ # 
    ~ # ps | grep -v grep | grep mysq
    32406 root      594m S    /opt/bin/mysqld --pid-file=/opt/var/run/mysqld/mysqld.pid
    ~ # 
    ~ # mysqla
    mysqlaccess   mysqladmin    mysqlanalyze
    ~ # mysqladmin -u root password "pass"
    ~ # 
    ~ # mysql -u root -p
    Enter password: 
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 12
    Server version: 10.4.10-MariaDB Source distribution
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]> create database testing;
    Query OK, 1 row affected (0.002 sec)
    
    MariaDB [(none)]> create database testing100500;
    Query OK, 1 row affected (0.002 sec)
    
    MariaDB [(none)]> \q
    Bye
    ~ # /opt/etc/init.d/S70mysqld restart
    ~ # 
    ~ # ps | grep -v grep | grep mysq
      449 root      594m S    /opt/bin/mysqld --pid-file=/opt/var/run/mysqld/mysqld.pid
    ~ # 
    ~ #

     

    ЧЯДНТ? (про многопользовательскую систему не надо. кто знает это слово, написанное тут читать не будет)

    Добрый день! Подскажите пожалуйста, как запустить настройку безопасности MariaDB?

    Пробовал разные варианты, не получается и всё тут...

    У Вас в описании Ваших действий видно, что после установки всех пакетов MariaDB при вводе команды

    mysql_

    выводится, как я понимаю, список доступных команд:

    mysql_convert_table_format  mysql_fix_extensions        mysql_plugin                mysql_setpermission         mysql_upgrade
    mysql_find_rows             mysql_install_db            mysql_secure_installation   mysql_tzinfo_to_sql         mysql_waitpid

    Пакеты связанные с MariaDB у меня установлены все, в админку захожу, а команды не работают, так же не работает команда

    mysqla

    Что не так делаю? Скриншоты действий прилагаю

     

    2020-02-19_155833.png

    2020-02-19_155926.png

    2020-02-19_161422.png

    • Thanks 1
×
×
  • Create New...