R
R
rinaz222019-10-18 18:19:06
linux
rinaz22, 2019-10-18 18:19:06

How to follow the link in the mobile version of the site only after the second click?

Hello! There is a menu with child directories. On PC, they are displayed on hover, while on mobile, you need to click. The problem is that when clicked, it jumps to the main directory, and it should only go after the 2nd click.
How can this be done?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
SagePtr, 2018-08-03
@SagePtr

Does the user running mysql have access to the files inside /var/lib/mysql?

D
Dmitry, 2018-08-03
@q2digger

Your InnoDB plugin is not initialized, so the process stops. Why - the reasons are different, the most banal - there is not enough memory. Sometimes there are problems with files


/var/lib/mysql/ib_logfile0
/var/lib/mysql/ib_logfile1

and removal helps.
I would start with the memory, reduce the settings a bit.
/var/lib/mysql/ibdata1 - DO NOT DELETE

M
Maxim, 2018-08-03
@freezl

Looks like mysql has problems with logs.
Try to transfer the logs
Then you can run. If there are no such files in /var/lib/mysql/, then check in /etc/mysql/my.cnf what values ​​the parameters have

innodb_data_home_dir
and
innodb_log_group_home_dir
And accordingly in this directory to look for log files. He swears like only on ib_logfile0

A
Alexey Firsaev, 2018-08-03
@itsfost

Now it gives the following errors [....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
failed!
[email protected]:/var/lib/mysql# journalctl -xe
Aug 03 16:23:03 broadband kernel: [UFW BLOCK] IN=enp5s0f0 OUT= MAC=00:15:17:2a:e6:70:00:00 :5e:00:01:95:08:00 SRC=212.34.248.214 DST=188.32.114.207 LEN=40 TOS=0x00 PREC=
Aug 03 16:23:10 broadband kernel: [UFW BLOCK] IN=enp5s0f0 OUT= MAC =00:15:17:2a:e6:70:00:00:5e:00:01:95:08:00 SRC=83.220.237.132 DST=188.32.114.207 LEN=40 TOS=0x08 PREC=
Aug 03 16:23:10 broadband kernel: [UFW BLOCK] IN=enp5s0f0 OUT= MAC=00:15:17:2a:e6:70:00:00:5e:00:01:95:08:00 SRC= 83.220.237.132 DST=188.32.114.207 LEN=40 TOS=0x08 PREC=
Aug 03 16:23:11 broadband sudo[6000]: root : TTY=pts/0 ; PWD=/var/lib/mysql ; USER=root ; COMMAND=/etc/init.d/mysql start
Aug 03 16:23:11 broadband sudo[6000]: pam_unix(sudo:session): session opened for user root by serveradmin(uid=0)
Aug 03 16:23:11 broadband systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
-- Subject: Starting mysql.service unit
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo /systemd-devel
--
-- Started the process of starting the mysql.service unit.
Aug 03 16:23:11 broadband mysql[6017]: * Starting MariaDB database server mysqld
Aug 03 16:23:14 broadband mysqld_safe[6622]: Starting mysqld daemon with databases from /var/lib/mysql
Aug 03 16:23: 14 broadband mysqld[6627]: 180803 16:23:14 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
Aug 03 16:23:14 broadband mysqld[6627]: 180803 16:23:14 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
Aug 03 16:23:14 broadband mysqld[6627]: 180803 16:23:14 [Note] /usr/sbin/mysqld (mysqld 10.0.33-MariaDB-0ubuntu0.16.04.1) starting as process 6626 ...
Aug 03 16:23:14 broadband mysqld[6627]: 180803 16:23:14 [ERROR] mysqld: File '/var/log/mysql/mysql-bin.index' not found (Errcode: 13"
Aug 03 16:23:14 broadband mysqld[6627]: 180803 16:23:14 [ERROR] Aborting
Aug 03 16:23:14 broadband mysqld[6627]:
Aug 03 16:23:14 broadband mysqld[6627]: 180803 16:23:14 [Note] /usr/sbin/mysqld: Shutdown complete
Aug 03 16:23:14 broadband mysqld[6627]:
Aug 03 16:23:14 broadband mysqld_safe[6630]: mysqld from pid file /var/ run/mysqld/mysqld.pid ended
Aug 03 16:23:20 broadband kernel: [UFW BLOCK] IN=enp5s0f0 OUT= MAC=00:15:17:2a:e6:70:00:00:5e:00:01 :95:08:00 SRC=188.92.20.98 DST=188.32.114.207 LEN=40 TOS=0x00 PREC=0x
Aug 03 16:23:24 broadband kernel: [UFW BLOCK] IN=enp5s0f0 OUT= MAC=00:15: 17:2a:e6:70:00:00:5e:00:01:95:08:00 SRC=195.38.23.96 DST=188.32.114.207 LEN=52 TOS=0x00 PREC=0x
Aug 03 16:23:43 broadband CRON[5928]: pam_unix(cron:session): session closed for user root
Aug 03 16:23:43 broadband /etc/init.d/mysql[7063]: 0 processes alive and ' /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Aug 03 16:23:43 broadband /etc/init.d/mysql[7063]: [61B blob data]
Aug 03 16:23:43 broadband mysql[6017]: ...fail!
Aug 03 16:23:43 broadband /etc/init.d/mysql[7063]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused ")'
Aug 03 16:23:43 broadband /etc/init.d/mysql[7063]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Aug 03 16:23:43 broadband /etc/init.d/mysql[7063]:
Aug 03 16:23:43 broadband systemd[1]: mysql.service: Control process exited, code=exited status=1
Aug 03 16:23:43 broadband systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
-- Subject: mysql.service unit failed
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The mysql.service unit failed.
--
-- Result: failed.
Aug 03 16:23:43 broadband systemd[1]: mysql.service: Unit entered failed state.
Aug 03 16:23:43 broadband systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 03 16:23:43 broadband sudo[6000]: pam_unix(sudo:session): session closed for user root

K
Konstantin, 2019-10-18
@rinaz22

In general, for example, you can count the results of clicks and, depending on how many times you clicked, decide whether to go to the page or not. Example
But I think it's better to do it the other way. Next to the name of the item, make an arrow along which the submenu will open. Accordingly, if a person wants to go to a subdirectory, then he clicks on the arrow and the list drops out, otherwise he clicks on the word Catalog itself and he goes to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question