How to fix InnoDB corruption cases for the MySQL databases on Plesk for Linux?

Follow

Comments

12 comments

  • Avatar
    Pedro Telmo

    Hi:

    What information must content the file /root/db_list.txt ?

    Regards

    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @Pedro Telmo,

    Hi! After executing the following command:

    # mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -e"SHOW DATABASES" > db_list.txt

    it should contain the names of all databases that are stored on MySQL server.

    -1
    Comment actions Permalink
  • Avatar
    Pedro Telmo (Edited )

    Yes Artyom.

    Alisa Kasyanova add this line after my comment :)

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Mskumar Blaze

    2018-02-21T14:59:14.908905Z 12 [ERROR] Plugin group_replication reported: 'Fatal error during the Recovery process of Group Replication. The server will leave the group.'

    0
    Comment actions Permalink
  • Avatar
    Mskumar Blaze

    I have some doubt I have configured innodb cluster (3 cluster) after I created I’ll be going to stop group replication in (cluster2) then I had to rejoin cluster2 after I rejoined cluster2 status as recovering after some times it’s going to show missing. My cluster1-(primary) log status Warning] Plugin group_replication reported: 'Members removed from the group: 608781bce352:3306'
    2018-02-21T14:59:16.115814Z 0 [Note] Plugin group_replication reported: 'Group membership changed to d5e07af19ef5:3306, 812606eb6abb:3306 on view 15191888786747824:12.'
    2018-02-21T15:00:13.434470Z 148 [Note] Aborted connection 148 to db: 'unconnected' user: 'mysql_innodb_cluster_r1721619408' host: 'cluster2.willing' (failed on flush_net())
    2018-02-21T15:16:48.046190Z 141 [Note] Aborted connection 141 to db: 'unconnected' user: 'root' host: 'd5e07af19ef5' (Got an error reading communication packets)

    My cluster2 log status Warning] Plugin group_replication reported: 'Members removed from the group: 608781bce352:3306'
    2018-02-21T14:59:16.115814Z 0 [Note] Plugin group_replication reported: 'Group membership changed to d5e07af19ef5:3306, 812606eb6abb:3306 on view 15191888786747824:12.'
    2018-02-21T15:00:13.434470Z 148 [Note] Aborted connection 148 to db: 'unconnected' user: 'mysql_innodb_cluster_r1721619408' host: 'cluster2.willing' (failed on flush_net())
    2018-02-21T15:16:48.046190Z 141 [Note] Aborted connection 141 to db: 'unconnected' user: 'root' host: 'd5e07af19ef5' (Got an error reading communication packets). I got confused kindly help me please...

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    @Mskumar Blaze

    Hello!

    I would suggest contacting MySQL Technical Support regarding this issue as they are experts in their product.

    0
    Comment actions Permalink
  • Avatar
    Iman GM

    Thanks Leonid!

    This article was a lifesaver. Worked great and the problem was fixed. 

    1
    Comment actions Permalink
  • Avatar
    Carlos Domingo Arias González

    Me funcionó correctamente, gracias !!!

    1
    Comment actions Permalink
  • Avatar
    Bendert Feenstra

    Absolute lifesaver!! Had a VPS installation with multiple hosted sites that could not start the mysql service all of a sudden (or to be more precise MariaDB). Was hesitant to try this; not that I didn't trust it, just had hopes that restarting would resolve this. Very glad that after 3 hours of trying other things I followed the Force InnoDB recovery description above. All hosted sites are now up and running again as if nothing happened.

    0
    Comment actions Permalink
  • Avatar
    Del C (Edited )

    I would recommend changing the dump line to: 

    cat /root/db_list.txt | while read i; do MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -uadmin "$i" --routines --hex-blob --databases > /root/db_backup/"$i".sql; echo $i; sleep 5; done

    Adding --hex-blob will dump binary columns using hexadecimal notation. If you don't, then depending on your db contents, on import you will get an error similar to: Mysql ERROR at line 1153: Unknown command '\'

    1
    Comment actions Permalink
  • Avatar
    Taras Ermoshin

    Hi @Del C!

    Thanks for sharing, this information may be useful to other Pleskians!

    2
    Comment actions Permalink
  • Avatar
    Tom Robak

    step mysqld --initialize error

    any ideas what to do now?

     

    [root@s1 ~]# mysqld --initialize
    2022-07-02 11:21:29 0 [Note] libgovernor.so found
    2022-07-02 11:21:29 0 [Note] All governors functions found too
    2022-07-02 11:21:29 0 [Note] Governor connected
    2022-07-02 11:21:29 0 [Note] All governors lve functions found too
    2022-07-02 11:21:29 0 [Note] mysqld (mysqld 10.5.10-MariaDB-cll-lve) starting as process 104650 ...
    mysqld: Please consult the Knowledge Base to find out how to run mysqld as root!
    2022-07-02 11:21:29 0 [ERROR] Aborting
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request