Skip to main content

Upgrade MySQL 5.7 to MariaDB 10.6

Comments

12 comments

  • cPRex Jurassic Moderator
    Hey there! The upgrade itself only takes a few minutes. I would expect that process to go well on your server. What we can't say is if all of your databases and code will work with the newer version, as that would be up to a database administrator to determine. If you have standard tools like WordPress or Joomla on your sites, those will be just fine, but any custom code that interacts with the database would need to be reviewed to ensure it works with the newer version.
    0
  • wbhoster
    Hey there! The upgrade itself only takes a few minutes. I would expect that process to go well on your server. What we can't say is if all of your databases and code will work with the newer version, as that would be up to a database administrator to determine. If you have standard tools like WordPress or Joomla on your sites, those will be just fine, but any custom code that interacts with the database would need to be reviewed to ensure it works with the newer version.

    yes we have mostly wordpress sites hosted but site hosted on WHMCS like my main website.
    0
  • wbhoster
    we have some website which is hosted on WHMCS so i want to confirm that it is safe to update to MariaDB ?
    0
  • cPRex Jurassic Moderator
    Yes, WHMCS would not be related to the MySQL upgrade.
    0
  • wbhoster
    Thannks for the reply now i am going to update to MariaDB
    0
  • SimpleSonic
    Thannks for the reply now i am going to update to MariaDB

    Make sure to do a full backup prior to upgrading. You"ll be glad you did if the upgrade fails.
    0
  • wbhoster
    Make sure to do a full backup prior to upgrading. You"ll be glad you did if the upgrade fails.

    How can we take a backup of all server databases?
    0
  • ffeingol
    From CLI: mysqldump --all-databases > some-file.sql That will backup all the databases on the server into a file called "some-file.sql"
    0
  • wbhoster
    From CLI: mysqldump --all-databases > some-file.sql That will backup all the databases on the server into a file called "some-file.sql"

    Thanks for the reply can u please tell me where this file will be saved on server mean what is the path of "some-file.sql" if i run command and can we restore it if i faced any problem after upgradation.
    0
  • SimpleSonic
    Thanks for the reply can u please tell me where this file will be saved on server mean what is the path of "some-file.sql" if i run command and can we restore it if i faced any problem after upgradation.

    If no path is given it will save it to the current folder you are in.
    0
  • wbhoster
    From CLI: mysqldump --all-databases > some-file.sql That will backup all the databases on the server into a file called "some-file.sql"

    I will create a backup of my server database using this method I want just to confirm if I upgrade today and unfortunately, the upgradation process failed due to any reason can we restore my server database which I saved by using this method if yes then how?
    0
  • SimpleSonic
    If the databases were dumped to that file, you can import them using: mysql -u root < some-file.sql
    0

Please sign in to leave a comment.