Mysql with magento causing drop in mysql connection - mysql

What does these errors mean and why does they occur
2020-12-11T10:11:48.355887Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-12-11T10:11:48.356116Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-12-11T10:11:48.356132Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-12-11T10:11:48.356650Z 0 [ERROR] Failed to initialize builtin plugins.
2020-12-11T10:11:48.356665Z 0 [ERROR] Aborting
2020-12-11T10:11:48.357957Z 0 [Note] Binlog end
2020-12-11T10:11:48.364822Z 0 [Note] Shutting down plugin 'CSV'
2020-12-11T10:11:48.366417Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
The following error occured due to magento setup:upgrade
As a result the mysql connection keeps dropping for every request (if i refresh page.navigate to other page)

Related

cannot run mysqld on fedora 36 after enabling the service with systemctl

I am not able to run mysqld, the socket connects without problem but there are some issue creating configurations files:
joy#fedora /]$ mysqld
2022-11-12 12:38:24 0 [Note] mysqld (mysqld 10.5.16-MariaDB) starting as process 4650 ...
2022-11-12 12:38:24 0 [Warning] Can't create test file /var/lib/mysql/fedora.lower-test
mysqld: Can't create file '/var/log/mariadb/mariadb.log' (errno: 13 "Permission denied")
2022-11-12 12:38:24 0 [ERROR] mysqld: File '/var/lib/mysql/aria_log_control' not found (Errcode: 13 "Permission denied")
2022-11-12 12:38:24 0 [ERROR] mysqld: Got error 'Can't open file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
2022-11-12 12:38:24 0 [ERROR] Plugin 'Aria' init function returned error.
2022-11-12 12:38:24 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2022-11-12 12:38:24 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2022-11-12 12:38:24 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2022-11-12 12:38:24 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-11-12 12:38:24 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2022-11-12 12:38:24 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-11-12 12:38:24 0 [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded
2022-11-12 12:38:24 0 [ERROR] Failed to initialize plugins.
2022-11-12 12:38:24 0 [ERROR] Aborting
When running with superuser:
[joy#fedora /]$ sudo mysqld
2022-11-12 12:41:13 0 [Note] mysqld (mysqld 10.5.16-MariaDB) starting as process 4679 ...
mysqld: Please consult the Knowledge Base to find out how to run mysqld as root!
2022-11-12 12:41:13 0 [ERROR] Aborting
the problema was solved connecting as root with the command mariadb -u root

can't access local mariadb mac: InnoDB error

I am trying to setup MariaDB on my local machine.
Whenever I try to log in with:
mariadb -u <mac_name> or mariadb -u root I get this error:
using my mac password also doesn't work.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
When I tail the logs found at /usr/local/var/mysql/<host_name>.err or /usr/local/var/mysql/<host_name>.local.err
I get these errors:
[Note] InnoDB: Completed initialization of buffer pool
[ERROR] InnoDB: Invalid flags 0x4800 in ./ibdata1
[ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
[Note] InnoDB: Starting shutdown...
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[Note] Plugin 'FEEDBACK' is disabled.
[ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting
Does anyone know how I could get this working?

mysql shutting too frequently

MySql shutting frequently:
I am getting this error:
2019-12-30T15:29:35.139597Z 0 [ERROR] InnoDB: Operating system error number 23 in a file operation.
2019-12-30T15:29:35.139597Z 0 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.7/en/operating-system-error-codes.html
2019-12-30T15:29:35.139597Z 0 [ERROR] InnoDB: File .\pink_square_wov\sales_entry_header.ibd: 'Windows aio' returned OS error 123. Cannot continue operation
2019-12-30T15:29:35.139597Z 0 [ERROR] InnoDB: Cannot continue operation.
2019-12-30T15:29:39.341887Z 0 [Note] InnoDB: FTS optimize thread exiting.
2019-12-30T15:31:24.046589Z 0 [Warning] InnoDB: 13 threads created by InnoDB had not exited at shutdown!
How can I fix that
I am using:
MySql 5.7.17
Windows 10

InnoDB Cannot allocate memory for the buffer pool

I've installed mysql, it works well, but sometimes I have:
Aborted connection 114069 to db: 'db1' user: 'root' host: 'localhost' (Got an error reading communication packets)
I've tried to solve it:sudo mysqld --max_allowed_packet=128M
but after it mysql doesn't work at all
2019-04-08T18:42:11.047491Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-04-08T18:42:11.047520Z 0 [ERROR] InnoDB: mmap(137428992 bytes) failed; errno 12
2019-04-08T18:42:11.047530Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2019-04-08T18:42:11.047534Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2019-04-08T18:42:11.047539Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2019-04-08T18:42:11.047555Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-04-08T18:42:11.047559Z 0 [ERROR] Failed to initialize builtin plugins.
2019-04-08T18:42:11.047562Z 0 [ERROR] Aborting
I don't know to which file mysql wrote this confit to remove it. How can I solve it or rollback?

mysql server is getting aborted when trying to start

2017-04-14T13:48:19.151793Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-14T13:48:19.167419Z 0 [ERROR] InnoDB: Unable to create temporary file; errno: 2
2017-04-14T13:48:19.183044Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-04-14T13:48:19.183044Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-04-14T13:48:19.183044Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-04-14T13:48:19.183044Z 0 [ERROR] Failed to initialize plugins.
2017-04-14T13:48:19.183044Z 0 [ERROR] Aborting
This is the error shown when i tried to start my MySQL57 server. Tried to fix the error my setting by adding the following in my.ini file:
explicit_defaults_for_timestamp = 1
Still the server gets aborted. Can anyone help me fixing this?