MySQL Plugin Not Starting

  • Checked the forum for similar threads but found no definitive solution, hoping I can get some help. This is on a fresh install just done today of OMV 3.0 beta.


    MySQL plugin can be turned on, but when Data Directory is set, and saved, errors happen.


    datadir = /media/3ed4d2b9-03c0-4b70-b850-82df1e1757f7/SQL


    I figured I'd pull out all stops and make mysql the user and group owner of the above folder with full permissions and created an internal share. Didn't change anything.


    GUI Interface Error:








    Output of: "systemctl status mysql.service"


    What obvious thing am I missing here?

    • Offizieller Beitrag

    Did you stop mysql and copy all of the files in /var/lib/mysql to the directory you are specifying? Are you sure you need to move it?

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I always thought I should store my databases on something other than the main OMV volume, especially since I am using an SSD. Should I just leave them where they are by default on the SSD OS drive? In that case would I still need to specify an alternate location or just leave that field blank? Because I think when I left it blank, I got an error as well (a different error, but an error all the same).

    • Offizieller Beitrag

    I would leave it on the SSD. A decent SSD should be able to easily handle it. Is your mysql instance very active (lots of writes)?

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • It's only being used for a Kodi database, which gets its share of use, but not all day and night type of stuff.


    I left that field blank, and the plugin is turne don so I figured I'd just try and restart the service via ssh.


    Here's the output of "service mysql start"


    Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.


    Output of: "systemctl status mysql.service"


    Code
    * mysql.service - LSB: Start and stop the mysql database server daemon
       Loaded: loaded (/etc/init.d/mysql)
       Active: failed (Result: exit-code) since Sat 2016-12-03 15:54:18 EST; 11s ago
      Process: 13439 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
    Dec 03 15:54:18 OMV mysql[13439]: Starting MySQL database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
    Dec 03 15:54:18 OMV systemd[1]: mysql.service: control process exited, code=exited status=1
    Dec 03 15:54:18 OMV systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
    Dec 03 15:54:18 OMV systemd[1]: Unit mysql.service entered failed state.

    Next thoughts? Total uninstall and reinstall? Pretty sure the first time I turned it on, even before I moved the path, it threw an error, so something else might be up here.

  • Check this out from mysql error.log



    161203 15:53:50 [Note] - '127.0.0.1' resolves to '127.0.0.1';
    161203 15:53:50 [Note] Server socket created on IP: '127.0.0.1'.
    161203 15:53:50 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
    161203 15:53:50 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
    161203 15:56:30 mysqld_safe Starting mysqld daemon with databases from /media/3ed4d2b9-03c0-4b70-b850-82df1e1757f7/SQL
    161203 15:56:30 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
    161203 15:56:30 [Note] /usr/sbin/mysqld (mysqld 5.5.53-0+deb8u1) starting as process 14916 ...
    161203 15:56:30 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
    161203 15:56:30 [Note] Plugin 'FEDERATED' is disabled.
    /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
    161203 15:56:30 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
    161203 15:56:30 InnoDB: The InnoDB memory heap is disabled
    161203 15:56:30 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    161203 15:56:30 InnoDB: Compressed tables use zlib 1.2.8
    161203 15:56:30 InnoDB: Using Linux native AIO
    161203 15:56:30 InnoDB: Initializing buffer pool, size = 128.0M
    161203 15:56:30 InnoDB: Completed initialization of buffer pool
    161203 15:56:30 InnoDB: highest supported file format is Barracuda.
    InnoDB: Log scan progressed past the checkpoint lsn 48941
    161203 15:56:30 InnoDB: Database was not shut down normally!
    InnoDB: Starting crash recovery.

    • Offizieller Beitrag

    Uninstall then reinstall the plugin.

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!