Melandr
-
Posts
20 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Downloads
Blogs
Events
Posts posted by Melandr
-
-
С пользователем вопрос решил, так как захожу под админом, который суперпользователь, то сменил пароль пользователя musql.
Теперь бы только разобраться с монтированием swap-файла после перезагрузки, а то пришлось все ручками стартовать. Ну и было бы неплохо как-то прикрутить phpmyadmin.
По сервисам mosquitto, lighhtpd, php стартанули после перезагрузки сами
-
Виталий Огеенко, спасибо!
По Вашему совету сделал
mkdir /opt/var/run/mysqld
chown -R mysql:mysql /opt/var/run/mysqldи mysql запустился
Лог ошибок
Spoiler2020-02-09 11:03:23 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-02-09 11:03:23 0 [Note] InnoDB: Uses event mutexes
2020-02-09 11:03:23 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-02-09 11:03:23 0 [Note] InnoDB: Number of pools: 1
2020-02-09 11:03:23 0 [Note] InnoDB: Using generic crc32 instructions
2020-02-09 11:03:23 0 [Note] InnoDB: Initializing buffer pool, total size = 5M, instances = 1, chunk size = 5M
2020-02-09 11:03:23 0 [Warning] InnoDB: Failed to set memory to MADV_DONTDUMP: Invalid argument ptr 0x4b814000 size 5242880
2020-02-09 11:03:23 0 [Note] InnoDB: Completed initialization of buffer pool
2020-02-09 11:03:23 0 [Warning] InnoDB: Failed to set memory to MADV_DONTDUMP: Invalid argument ptr 0x4bd35000 size 33554432
2020-02-09 11:03:23 0 [Warning] InnoDB: Failed to set memory to MADV_DONTDUMP: Invalid argument ptr 0x4de04000 size 2097152
2020-02-09 11:03:23 0 [Note] InnoDB: page_cleaner coordinator priority: -20
2020-02-09 11:03:23 0 [Warning] InnoDB: Failed to set memory to MADV_DODUMP: Invalid argument ptr 0x4de04000 size 2097152
2020-02-09 11:03:23 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-02-09 11:03:23 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-02-09 11:03:23 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-02-09 11:03:23 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-02-09 11:03:23 0 [Note] InnoDB: Waiting for purge to start
2020-02-09 11:03:23 0 [Note] InnoDB: 10.4.10 started; log sequence number 140087; transaction id 21
2020-02-09 11:03:23 0 [Note] InnoDB: Loading buffer pool(s) from /tmp/mnt/FLASH/var/lib/mysql/ib_buffer_pool
2020-02-09 11:03:23 0 [Note] Server socket created on IP: '127.0.0.1'.
2020-02-09 11:03:23 0 [Note] InnoDB: Buffer pool(s) load completed at 200209 11:03:23
2020-02-09 11:03:23 0 [Note] Reading of all Master_info entries succeeded
2020-02-09 11:03:23 0 [Note] Added new Master_info '' to hash table
2020-02-09 11:03:23 0 [Note] /opt/bin/mysqld: ready for connections.
Version: '10.4.10-MariaDB' socket: '/opt/var/run/mysqld/mysqld.sock' port: 3306 Source distribution
Вывод консоли
Spoileradmin@RT-AC66U_B1:/tmp/home/root# mkdir /opt/var/run/mysqld
admin@RT-AC66U_B1:/tmp/home/root# chown -R mysql:mysql /opt/var/run/mysqld
admin@RT-AC66U_B1:/tmp/home/root# chown -R mysql:mysql /opt/var/lib/mysql
admin@RT-AC66U_B1:/tmp/home/root# /opt/etc/init.d/S70mysqld start
admin@RT-AC66U_B1:/tmp/home/root# /opt/etc/init.d/S70mysqld status
mysqld is already running
admin@RT-AC66U_B1:/tmp/home/root# -
Вот нашел старую тему, на другом форуме, кстати, Вы писали порядок действий. http://forums.zyxmon.org/viewtopic.php?f=5&t=5220&hilit=mysql&start=10 Все повторял как там. Я понимаю, никто никому не обязан помогать. Но подсказать где можно посмотреть, в чем проблема. Команды то вводятся те же.
Подключил своп-файл размером 256 МБ. Пока скрипты на автозапуск своп-файла не делал.
Ввожу команду mysql_install_db --datadir=/opt/var/mysql --basedir=/opt --force
Вывод в консоли
Spoileradmin@RT-AC66U_B1:/tmp/home/root# mysql_install_db --datadir=/opt/var/mysql --ba
sedir=/opt --force
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
Installing MariaDB/MySQL system tables in '/opt/var/mysql' ...
Segmentation faultInstallation of system tables failed! Examine the logs in
/opt/var/mysql for more information.The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:shell> /opt/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /opt/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /opt/bin/mysql
to connect to the mysql database and look at the grant tables:shell> /opt/bin/mysql -u root mysql
mysql> show tables;Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/var/mysql that may be helpful.The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discussPlease check all of the above before submitting a bug report
at http://mariadb.org/jiraadmin@RT-AC66U_B1:/tmp/home/root#
Вывод лог-файла ошибок mariadb
Spoiler2020-02-08 19:38:48 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-08 19:38:48 0 [Warning] InnoDB: Linux Native AIO disabled.
2020-02-08 19:38:49 0 [Warning] InnoDB: Failed to set memory to MADV_DONTDUMP: Invalid argument ptr 0x4b8c4000 size 134217728
200208 19:38:49 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.Server version: 10.4.10-MariaDB
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 351726 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x30000
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /tmp/mnt/FLASH/var/mysql
Resource Limits:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 2088960 unlimited bytes
Max core file size 0 0 bytes
Max resident set unlimited unlimited bytes
Max processes 1996 1996 processes
Max open files 4184 4184 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 1996 1996 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: core
-
11 hours ago, TheBB said:
1,2,3 не знаю, данного устройства на руках нет.
рекомендуется установка "машки" на раздел не менее 1 GB
А что Вы имеете ввиду? У меня установлен Entware на флешку 4ГБ, отформатированную под Ext2. Роутер RT-AC66U B1 is powered by a 1GHz dual-core CPU, 128MB of flash memory, and 256MB of RAM.
Прошивка оригинальная, по Вашему же совету, возможно, на другом форуме, сделал альтернативную установку Entware. Сорри за оффтоп, насчет АСУС. Не знаю, почему такое отторжение. Но вопрос относится больше к ПО MySQL и репозиторию Entware. С Линукс на Вы, потому и спрашиваю много, так как не толкается это с первого раза. И смотрю, что проблемы не только у меня на Асусе, но и у других пользователей Кенетиков.
Выше товарищ RVP, наступил на теже грабли. Кстати на Гитхабе нашел, Zyxmon тоже что-то, относящее к запуске MariDB , объяснял пользователю Асуса, правда тема достаточно старая. В принципе, если у Вас нет устройства, то какие-то понятие и понимание, что нужно делать есть? Я бы мог на своем это повторить, и потом бы другим было бы проще. Я так понимаю проблема больше относится не к конкртеной модели роутера, а вообще, к установке MariDB.
-
TheBB, доброй ночи! Если не трудно посмотреть вывод консоли и лог mysql. Как Вы выше упомянули, подозрение на недостаток памяти
Это лог ошибок mysql - /opt/var/log/mysql/error.log
Spoiler2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 130760704 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 98058240 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 73531392 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 55148544 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 41361408 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 31014912 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 23248896 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 17424384 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 2031616 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Out of memory (Needed 262144 bytes)
2020-02-07 12:55:34 0 [ERROR] mysqld: Aria engine: log initialization failed
2020-02-07 12:55:34 0 [ERROR] Plugin 'Aria' init function returned error.
2020-02-07 12:55:34 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
200207 12:55:34 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.Server version: 10.4.10-MariaDB
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 351726 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x30000
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /tmp/mnt/FLASH/var/lib/mysql
Resource Limits:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 2088960 unlimited bytes
Max core file size 0 0 bytes
Max resident set unlimited unlimited bytes
Max processes 1996 1996 processes
Max open files 4184 4184 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 1996 1996 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: core2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 130760704 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 98058240 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 73531392 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 55148544 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 41361408 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 31014912 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 23248896 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 17424384 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 2031616 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Out of memory (Needed 1523712 bytes)
2020-02-07 19:30:17 0 [ERROR] mysqld: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2020-02-07 19:30:17 0 [ERROR] Plugin 'Aria' init function returned error.
2020-02-07 19:30:17 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
200207 19:30:17 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.Server version: 10.4.10-MariaDB
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 351726 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x30000
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /tmp/mnt/FLASH/var/lib/mysql
Resource Limits:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 2088960 unlimited bytes
Max core file size 0 0 bytes
Max resident set unlimited unlimited bytes
Max processes 1996 1996 processes
Max open files 4184 4184 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 1996 1996 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: core2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 130760704 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 98058240 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 73531392 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 55148544 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 41361408 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 31014912 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 23248896 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 17424384 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 2031616 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 1523712 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 1130496 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Out of memory (Needed 262144 bytes)
2020-02-07 19:38:24 0 [ERROR] mysqld: Aria engine: log initialization failed
2020-02-07 19:38:24 0 [ERROR] Plugin 'Aria' init function returned error.
2020-02-07 19:38:24 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
200207 19:38:25 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.Server version: 10.4.10-MariaDB
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 351726 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x30000
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /tmp/mnt/FLASH/var/lib/mysql
Resource Limits:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 2088960 unlimited bytes
Max core file size 0 0 bytes
Max resident set unlimited unlimited bytes
Max processes 1996 1996 processes
Max open files 4184 4184 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 1996 1996 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: core
А это вывод консоли при создании базы данных
Spoileradmin@RT-AC66U_B1:/tmp/home/root# /opt/bin/mysql_install_db
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
WARNING: The host 'RT-AC66U_B1' 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' ...
Segmentation faultInstallation of system tables failed! Examine the logs in
/opt/var/lib/mysql for more information.The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:shell> /opt/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /opt/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /opt/bin/mysql
to connect to the mysql database and look at the grant tables:shell> /opt/bin/mysql -u root mysql
mysql> show tables;Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/var/lib/mysql that may be helpful.The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discussPlease check all of the above before submitting a bug report
at http://mariadb.org/jiraadmin@RT-AC66U_B1:/tmp/home/root#
Вопрос по swap файлу. На форуме нашел инструкции по созданию swap -файла. Но хотел уточнить пару моментов:
1. Его необходимо создать как файл на примонтированной флешке, или как отдельный раздел на этой же флешке?
2. Смущает момент подключения и отключения swap файла при перезагрузке роутера. Я так понимаю нужно сделать два скрипта на подключение файла при загрузке и отключение файла при перезагрузке (отключении). Вроде бы нашел скрипт на
To enable swap file when router booting, add this lines to /jffs/scripts/post-mount script
echo "" >>/jffs/scripts/post-mount echo "swapon /opt/swap" >>/jffs/scripts/post-mount
To unmount swap add this lines to /jffs/scripts/services-stop script
echo "" >>/jffs/scripts/services-stop echo "swapoff /opt/swap" >>/jffs/scripts/services-stop
Но у меня для автозапуска используются скрипты из папки /opt/etc/init.d/
3. Также еще вопрос монтирования и размонтирования флешки, используемой для Entware, Тоже необходимы скрипты для корректного отключения и подключения swap-файла?
-
-
Доброй ночи! Пытаюсь установить mysql. Делал по инструкции https://hqt.ro/how-to-install-mysql-server-phpmyadmin-through-entware-ng/
Не пошло. Далее из этой темы пробовал создавать базу данных разными командами, ниже листинг из консоли:
Spoileradmin@RT-AC66U_B1:/tmp/home/root# /opt/bin/mysql_install_db
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
WARNING: The host 'RT-AC66U_B1' 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-06 20:01:39 0 [ERROR] mysqld: File '/opt/var/log/mysql/mysql-bin.index' not found (Errcode: 2 "No such file or directory")
2020-02-06 20:01:39 0 [ERROR] Aborting
Installation of system tables failed! Examine the logs in
/opt/var/lib/mysql for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /opt/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /opt/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /opt/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /opt/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/var/lib/mysql that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
Spoileradmin@RT-AC66U_B1:/tmp/home/root# mysql_install_db --force
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
Installing MariaDB/MySQL system tables in '/opt/var/lib/mysql' ...
2020-02-06 20:05:04 0 [ERROR] mysqld: File '/opt/var/log/mysql/mysql-bin.index' not found (Errcode: 2 "No such file or directory")
2020-02-06 20:05:04 0 [ERROR] Aborting
Installation of system tables failed! Examine the logs in
/opt/var/lib/mysql for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /opt/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /opt/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /opt/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /opt/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/var/lib/mysql that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
Spoileradmin@RT-AC66U_B1:/tmp/home/root# /opt/bin/mysql_install_db --defaults-file=~/.m
y.cnf
Could not open required defaults file: /root/.my.cnf
Fatal error in defaults handling. Program aborted
WARNING: The host 'RT-AC66U_B1' 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/data' ...
Could not open required defaults file: /root/.my.cnf
Fatal error in defaults handling. Program aborted
Installation of system tables failed! Examine the logs in
/opt/data for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /opt/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /opt/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /opt/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /opt/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/data that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
Spoileradmin@RT-AC66U_B1:/tmp/home/root# opkg install mariadb-server mariadb-client-ext
ra
Package mariadb-server (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/armv7sf-k2.6/mariadb-client-extra_10.4.10-1_armv7-2.6.ipk
Installing libncurses (6.1-5) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libncurses_6.1-5_armv7-2.6.ipk
Installing libedit (20191025-3.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/libedit_20191025-3.1-1_armv7-2.6.ipk
Installing mariadb-client-base (10.4.10-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/mariadb-client-base_10.4.10-1_armv7-2.6.ipk
Installing mariadb-client (10.4.10-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/mariadb-client_10.4.10-1_armv7-2.6.ipk
Configuring libncurses.
Configuring libedit.
Configuring mariadb-client-base.
Configuring mariadb-client.
Configuring mariadb-client-extra.
admin@RT-AC66U_B1:/tmp/home/root# mysql_install_db
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
WARNING: The host 'RT-AC66U_B1' 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-06 21:39:27 0 [ERROR] mysqld: File '/opt/var/log/mysql/mysql-bin.index' not found (Errcode: 2 "No such file or directory")
2020-02-06 21:39:27 0 [ERROR] Aborting
Installation of system tables failed! Examine the logs in
/opt/var/lib/mysql for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /opt/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /opt/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /opt/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /opt/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /opt/var/lib/mysql that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
MySQL не запускается. Не подскажите, в какую сторону копать?
-
TheBB, zyxmon. Большое спасибо за помощь. После прочтения указанных Вами статей, перенастроил Entware на альтернативный вариант установки (Удалите файлы (некоторых может не быть) /opt/etc/passwd, /opt/etc/shadow, /opt/etc/group, /opt/etc/gshadow, /opt/etc/shells и скопируйте на их место следующие файлы...). Далее создал необходимого пользователя и перегрузил роутер. После перезагрузки подключился по SSH с действующим логином и паролем прошивочного варианта. Необходимый сервис запустился и работает (mosquitto). Правда через openssh из Entware подключиться не получается, буду еще разбираться. Также еще вопрос остался открытый с mysql. не подскажите, в какой ветке форума можно спрашивать, чтобы не делать "оффтоп"?
-
Спасибо за подсказки. Еще один момент. Если я полностью переустановлю Entware со стандартного на альтернативный, смогу ли я подключаться к встроенному в прошивку SSH-серверу. Так как на всех рекомендациях указано, что нужно установить SSH-сервер из репозитория Entware? В принципе мне было бы достаточно и добавлять пользователя при загрузке, но опять же непонятно как вводить пароль, если пользователь создается скриптом?
-
Да тут и гадать нечего,я у Вас на форуме почитал описание установки Entware и понятно что установка стнадартная. Вопрос в том, я установил openssh, сгенерировал ключи, ключи появились в папке /tmp/opt/etc/ssh
ssh_host_dsa_key
ssh_host_dsa_key.pub
ssh_host_ecdsa_key
ssh_host_ecdsa_key.pub
ssh_host_ed25519_key
ssh_host_ed25519_key.pub
ssh_host_rsa_key
ssh_host_rsa_key.pub
sshd_config
Но при попытке подключения по SSH под пользователем sshd идет запрос пароля, и пароль 12345 не проходит. Просто по Вашей же инструкции необходимо удалить файлы /opt/etc/passwd, /opt/etc/shaddow, /opt/etc/group, /opt/etc/gshadow, /opt/etc/shells и заходить уже не прошивочным ssh, а из пакета. А я им подключиться не могу. Хотя также разрешил доступ root в конфиг файле, но им тоже не заходит -
Спасибо, ссылка интересная. есть с чем разбираться.
Правда я по инструкции с этого же сайта установил openssh-server, сгенерировал ключи, создал группу и пользователя. Пытаюсь зайти, а у меня запрашивает пароль, ввожу пароль 12345. Пишет доступ запрещен. Перепробовал известные пароли - не идет. Не подскажите какой пароль должен быть? С учетом того, что при первом подключении мне выдает предупреждение о неизвестных ключах и можно ли им доверять
-
Уу, спасибо. Такой информации не знал. но теперь возникает вопрос. А как проверить, какой у меня тип сценариев установки?
Вот цитата
QuoteВо многих случаях можно выбрать подходящий скрипт для установки Entware. При стандартной установке все пользователи в Entware и прошивках являются общими.
Очень похоже на мою проблему.
Вот устанавливал по инструкции
Quote1. Развертываем Entware командой
wget -O - http://bin.entware.net/armv7sf-k2.6/installer/generic.sh | sh
То есть нужно было указывать на alternative? Слушайте, Вы мне уже сказали А. Тогда если не трудно ответить еще на пару вопросов?
1. Можно ли обойти мою проблему не переустанавливая Entware?
2. Имеет ли какие-то преимущества alternative над standard?
3. Если я не смогу победить эту проблему на standard, перейти на alternative можно только полностью отформатировав флешку и переустановив Entware?
4.
QuoteПРИМЕЧАНИЕ 1. Чтобы в полной мере воспользоваться альтернативной установкой, рекомендуется установить версию SSH-сервера Entware (dropbear или openssh-server) и использовать ее на нестандартном порту.
Использую подключение по SSH без установки допjлнительных пакетов, просто включив доступ по SSH в вэб-морде роутера и изменив порт. В процессах видел запущенный dropbear правда по команде opkg list-installed - dropbear в списке нет
ЗЫ: Спасибо за подсказки.
-
Да не кинетик. Не нашел нормального русскоязычного форума по АСУС, а пару моментов у Вас на форуме прочитал интересных при борьбе с Entware. потому и решил спросить Вопрос то больше относится к linux
-
Вот сделал Ваши команды в консоли:
admin@RT-AC66U_B1:/tmp/home/root# cat /etc/passwd admin:x:0:0:admin:/root:/bin/sh nas:x:100:100:nas:/dev/null:/dev/null nobody:x:65534:65534:nobody:/dev/null:/dev/null mosquitto:x:1000:1000:Linux User,,,:/opt/home/mosquitto:/bin/sh admin@RT-AC66U_B1:/tmp/home/root# cat /opt/etc/passwd admin:x:0:0:admin:/root:/bin/sh nas:x:100:100:nas:/dev/null:/dev/null nobody:x:65534:65534:nobody:/dev/null:/dev/null mosquitto:x:1000:1000:Linux User,,,:/opt/home/mosquitto:/bin/sh admin@RT-AC66U_B1:/tmp/home/root#
Содержимое файлов одинаково.
После перезагрузки роутера
admin@RT-AC66U_B1:/tmp/home/root# cat /etc/passwd admin:x:0:0:admin:/root:/bin/sh nas:x:100:100:nas:/dev/null:/dev/null nobody:x:65534:65534:nobody:/dev/null:/dev/null admin@RT-AC66U_B1:/tmp/home/root# cat /opt/etc/passwd admin:x:0:0:admin:/root:/bin/sh nas:x:100:100:nas:/dev/null:/dev/null nobody:x:65534:65534:nobody:/dev/null:/dev/null admin@RT-AC66U_B1:/tmp/home/root#
Советовался на работе с бывалыми линуксоидами, они про раздельных пользователей не слышали. НЕ подскажитее, в какую сторону копать?
-
А не подскажите, в какой раздел можно написать и можно ли тему перенести. А то еще не разобрался в структуре форума. Спасибо.
-
Доброй ночи! Не подскажите по одному вопросу. Правда относится не к роутерам Keenetic, а больше к операционной системе linux. Установил пакет mosquitto . Выдает при вводе команды mosquitto в консоли
:/tmp/home/root# mosquitto
1580677707: mosquitto version 1.6.8 starting
1580677707: Using default config.
1580677707: Opening ipv4 listen socket on port 1883.
1580677707: Opening ipv6 listen socket on port 1883.
1580677707: Error: Invalid user 'mosquitto'.Добавил скрипт автозапуска mosquitto , но так как пользователь указан mosquito в конфиге брокера, то брокер не запускается. При добавлении вручную пользователя через команду adduser и запуск брокера. Все работает. Но после перезагрузки роутера данный пользователь удаляется из файла /opt/etc/passwd и брокер не запускается. При этом пользователи
admin:x:0:0:admin:/root:/bin/sh
nas:x:100:100:nas:/dev/null:/dev/null
nobody:x:65534:65534:nobody:/dev/null:/dev/null
остаются в файле. Подскажите, как можно добавить пользователя mosquitto, чтобы он сохранялся после перезагрузки роутера?- 1
Wordpress на entware
in Вопросы по сборке и настройке Opkg
Posted
Пробую установить phpmyadmin
admin@RT-AC66U_B1:/tmp# opkg install phpmyadmin
Unknown package 'phpmyadmin'.
Collected errors:
* opkg_install_cmd: Cannot install package phpmyadmin.
admin@RT-AC66U_B1:/tmp#
ЧЯДНТ?