MySQL could not be started - help request

7 posts / 0 new
Last post
VA3KOT
MySQL could not be started - help request

New user John, VA3KOT here. Tried to start CQRLog for first time and received error msg: "MySQL could not be started, please check if the MySQL server is installed properly". I would appreciate some help, thanks.

My OS is Mint Cinnamon 19.3. I added and installed from the repo suggested on this site. Here are the last few lines of mysql.err:

2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: The InnoDB memory heap is disabled
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Using Linux native AIO
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Using generic crc32 instructions
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Initializing buffer pool, size = 80.0M
2020-02-17 13:38:18 140230047665280 [Note] InnoDB: Completed initialization of buffer pool
2020-02-17 13:38:19 140230047665280 [Note] InnoDB: Highest supported file format is Barracuda.
InnoDB: No valid checkpoint found.
InnoDB: A downgrade from MariaDB 10.2.2 or later is not supported.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/error-creating-innodb.html
2020-02-17 13:38:19 140230047665280 [ERROR] Plugin 'InnoDB' init function returned error.
2020-02-17 13:38:19 140230047665280 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-02-17 13:38:19 140230047665280 [Note] Plugin 'FEEDBACK' is disabled.
2020-02-17 13:38:19 140230047665280 [ERROR] Unknown/unsupported storage engine: innodb
2020-02-17 13:38:19 140230047665280 [ERROR] Aborting

oh1kh
MySQL could not be started - help request

Hi John!

If you have used ppa asMySQL could not be started - help request adviced in this web page (download section) please check also that apparmor does not prevent running mysql(/modifying files) in ~/.config/cqrlog/database folder.

As you do not have any qsos in log you can always delete folder ~/.config/cqrlog

Console command fro doing that:
rm -rf ~/.config/cqrlog

Then try again to start from "tabula rasa".

There has been problems with Mint and perhaps someone of Mint users can give you more precise help.

https://www.cqrlog.com/node/1938

More can be found with:
https://www.google.fi/search?q=cqrlog.com+mint+cinnamon+mysql

Unfortunately there often are no [solved]-messages sent after the problem has solved. That could help others having similar issues.

--
Saku
OH1KH

oh1kh
MySQL could not be started - help request

HI!
I really do not understand how I get so often the subject line inserted into first line of the text body.
I can not be seen in preview and once saved, it is there...

--
Saku
OH1KH

VA3KOT
MySQL could not be started

Fixed - Thank you Saku. Deleting ~/.config/cqrlog did the trick. CQRLog opened as expected when I restarted the program. Now I begin the process of learning CQRLog - it looks like a great program!
John, VA3KOT

N9HSJ
MySQL could not be started

seeing a similar problem to what John had - not sure if it is exactly the same, since deleting .config/cqrlog does not fix it.

info:
Dell Latitude E6500 running

:~$ uname -a
Linux laptop5 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

:~$ ls -al .config/cqrlog/database
total 12
drwxrwxr-x 2 user user 4096 Mar 2 21:05 .
drwxrwxr-x 12 user user 4096 Mar 2 21:06 ..
-rw-rw-r-- 1 user user 1857 Mar 2 21:05 mysql.cnf
:~$

:~$ cqrlog

Cqrlog Ver:2.4.0 (001) Date:2019-10-27
**** DEBUG LEVEL 0 ****
**** CHANGE WITH --debug=1 PARAMETER ****

OS:
Linux version 5.3.0-40-generic (buildd@lcy01-amd64-026) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020
/usr/bin/mysqld
Could not open required defaults file: /home/user/.config/cqrlog/database/mysql.cnf
Fatal error in defaults handling. Program aborted
Invalid file handle
Closing ini file ...
:~$

-----------------------------------------------------
attempting to access the mysql.err file gives:

Failed to open URI “file:///home/user/.config/cqrlog/database/mysql.err”
no such file or directory

-----------------------------------------------------

:~$ cqrlog --debug=1

Cqrlog Ver:2.4.0 (001) Date:2019-10-27
**** DEBUG LEVEL 1 ****

OS:
Linux version 5.3.0-40-generic (buildd@lcy01-amd64-026) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020
SSL libraries:
libssl.so
libcrypto.so
Loaded 134350 LoTW users
Loaded 125829 eQSL users
Loaded 36919 SCP calls
*
User home directory: /home/user/
Program home directory: /home/user/.config/cqrlog/
Data directory: /home/user/.config/cqrlog/database/
Memebers directory: /home/user/.config/cqrlog/members/
ZIP code directory: /usr/share/cqrlog/zipcodes/
Binary dir: /usr/bin/
Share dir: /usr/share/cqrlog/
*
56 us states loaded
Grid map created
/usr/bin/mysqld
MySQLProcess.Executable: /usr/sbin/mysqld Parameters: --defaults-file=/home/user/.config/cqrlog/database/mysql.cnf
--datadir=/home/user/.config/cqrlog/database/
--socket=/home/user/.config/cqrlog/database/sock
--port=64000

Trying to connect to database
Could not open required defaults file: /home/user/.config/cqrlog/database/mysql.cnf
Fatal error in defaults handling. Program aborted
TMySQL57Connection : Server connect failed.
Trying:1
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:2
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:3
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:4
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:5
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:6
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:7
Trying to connect to database
TMySQL57Connection : Server connect failed.
Trying:8

:~$

any suggestions would be most welcome - have cqrlog running on my desktop machine on UbuntuStudio 18.04 but I would verymuch like to get it running on my field laptop.

Tom N9HSJ

oh1kh
MySQL could not be started

Hi Tom!

It could be some kind of security issue that prevents MYSQL accessing the ~/.config/cqrlog/database

If you have running cqrlog you could try to copy ~/.config/cqrlog/ from that PC to USB stick, then remove ~/.config/cqrlog/ from laptop and copy the one from USB stick.

PC
cp -a ~/.config/cqrlog/ /your/usb_stick

Laptop:
rm -rf ~/.config/cqrlog/
cp -a /your/usb_stick/cqrlog ~/.config/

Then check that you see all files in ~/.config/cqrlog/database and that you can open ~/.config/cqrlog/database/mysql.cnf with text editor.
If ok, try to start cqrlog.

--
Saku
OH1KH

N9HSJ
MySQL could not be started - fixed!

Thanks for the help, Saku! copying over the working files from the other computer fixed this problem.

Tom N9HSJ