mysql server is getting aborted when trying to start - mysql

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?

Related

Mysql with magento causing drop in mysql connection

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)

Trying to start MySQL from MacOS

I am all new to Iava and JDBC. Probably making a simple mistake. I am trying to start MySQL from NetBeans with the following server properties:
I get the following error messages:
mysqld: Can't change dir to '/usr/local/mysql-8.0.0-dmr-osx10.11-x86_64/data/' (Errcode: 13 - Permission denied)
2020-08-13T10:45:33.948213Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-08-13T10:45:33.948830Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2020-08-13T10:45:33.948973Z 0 [Note] /usr/local/mysql-8.0.0-dmr-osx10.11-x86_64/bin/mysqld (mysqld 8.0.0-dmr) starting as process 29862 ...
2020-08-13T10:45:33.963298Z 0 [Warning] Can't create test file /usr/local/mysql-8.0.0-dmr-osx10.11-x86_64/data/Mauritss-MacBook-Air.lower-test
2020-08-13T10:45:33.963374Z 0 [Warning] Can't create test file /usr/local/mysql-8.0.0-dmr-osx10.11-x86_64/data/Mauritss-MacBook-Air.lower-test
2020-08-13T10:45:33.963913Z 0 [ERROR] failed to set datadir to /usr/local/mysql-8.0.0-dmr-osx10.11-x86_64/data/
2020-08-13T10:45:33.963935Z 0 [ERROR] Aborting
2020-08-13T10:45:33.964020Z 0 [Note] Binlog end
2020-08-13T10:45:33.964169Z 0 [Note] /usr/local/mysql-8.0.0-dmr-osx10.11-x86_64/bin/mysqld: Shutdown complete
I realise I probably have to add some connector but I don't know where and how.

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?

I'm getting an error everytime I try to type mysqld into the command line

This one is stumping me bigtime...
JohnnyRingo#Johns-MacBook-Pro:~$ mysqld
mysqld: Can't change dir to '/usr/local/mysql-5.7.19-macos10.12-x86_64/data/' (Errcode: 13 - Permission denied)
2017-09-16T03:18:04.160020Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-09-16T03:18:04.160358Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-09-16T03:18:04.160429Z 0 [Note] mysqld (mysqld 5.7.19) starting as process 2451 ...
2017-09-16T03:18:04.164591Z 0 [Warning] Can't create test file /usr/local/mysql-5.7.19-macos10.12-x86_64/data/Johns-MacBook-Pro.lower-test
2017-09-16T03:18:04.164629Z 0 [Warning] Can't create test file /usr/local/mysql-5.7.19-macos10.12-x86_64/data/Johns-MacBook-Pro.lower-test
2017-09-16T03:18:04.164704Z 0 [ERROR] failed to set datadir to /usr/local/mysql-5.7.19-macos10.12-x86_64/data/
2017-09-16T03:18:04.164720Z 0 [ERROR] Aborting
2017-09-16T03:18:04.164729Z 0 [Note] Binlog end
2017-09-16T03:18:04.164811Z 0 [Note] mysqld: Shutdown complete

Can't install MySQL 5.7 on server without root account

I am using a hosting server that doesn't provide me with a root account.
They don't provide me with an installation service of database.
The server is Red Hat Enterprise Linux Server release 6.1 (Santiago) x86_64.
I tried to download and install MySQL 5.7.10, but it shows me errors regarding to InnoDB setup as below:
[hoge#blackett mysql]$ ./bin/mysqld --initialize --basedir=/home/hoge/mysql --character-set-server=utf8
2016-01-27T14:20:51.751550Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2016-01-27T14:20:51.751921Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-01-27T14:20:52.148092Z 0 [Warning] InnoDB: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
2016-01-27T14:20:52.148146Z 0 [Warning] InnoDB: io_setup() attempt 1.
2016-01-27T14:20:52.658080Z 0 [Warning] InnoDB: io_setup() attempt 2.
2016-01-27T14:20:53.168026Z 0 [Warning] InnoDB: io_setup() attempt 3.
2016-01-27T14:20:53.676057Z 0 [Warning] InnoDB: io_setup() attempt 4.
2016-01-27T14:20:54.181090Z 0 [Warning] InnoDB: io_setup() attempt 5.
2016-01-27T14:20:54.687086Z 0 [ERROR] InnoDB: io_setup() failed with EAGAIN after 5 attempts.
2016-01-27T14:20:54.687174Z 0 [ERROR] InnoDB: Cannot initialize AIO sub-system
2016-01-27T14:20:54.687194Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2016-01-27T14:20:54.687208Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2016-01-27T14:20:54.687215Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-01-27T14:20:54.687223Z 0 [ERROR] Failed to initialize plugins.
2016-01-27T14:20:54.687229Z 0 [ERROR] Aborting
I also did the following:
cp ./support-files/my-default.cnf ~/my.cnf
I tried the following command, but it gives me the same errors:
[hoge#blackett mysql]$ ./bin/mysqld --initialize --character-set-server=utf8 --basedir=/home/hoge/mysql --defaults-file=/home/hoge/my.cnf
I wrote the following in my.cnf, but doesn't solve the error:
innodb_use_native_aio = 0
I have no ideas to solve them.
Could you please help me?
Maybe...
On Linux systems, running multiple MySQL servers (typically more than
12) with default settings for innodb_read_io_threads,
innodb_write_io_threads, and the Linux aio-max-nr setting can exceed
system limits. Ideally, increase the aio-max-nr setting; as a
workaround, you might reduce the settings for one or both of the
MySQL configuration options.
-- http://bugs.mysql.com/bug.php?id=61575
I resolved the issue myself.
The document https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html says
the --defaults-file option must be first
When I typed ./bin/mysqld --defaults-file=/home/hoge/my.cnf --initialize --character-set-server=utf8 --basedir=/home/hoge/mysql, the option file was recognized.
Another solution is to specify --innodb_use_native_aio=0 option directly without using the option file, my.cnf, as below:
./bin/mysqld --initialize --basedir=/home/utpsy/mysql --character-set-server=utf8 --innodb_use_native_aio=0