LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-23-2018, 02:20 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
Migrating mysql to Mariadb


hello all,

I am using old Debian version(4) and MySQL version(5). Is it possible to Migrate from Mysql to Maria DB? I guess in the latest Debian versions it comes with Maria DB as default installation. Do I have to first do Patch upgradation? Please suggest
 
Old 10-23-2018, 04:02 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
that highly depends on the database you have. Without information there is no way to tell you anything. But if you wish I can guess: yes, it works.

What you can do is: check how to dump the old mysql database and how to import that into the new mariadb. Also you can look for general solutions on the net.
 
Old 10-23-2018, 06:49 AM   #3
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
that highly depends on the database you have. Without information there is no way to tell you anything. But if you wish I can guess: yes, it works.

What you can do is: check how to dump the old mysql database and how to import that into the new mariadb. Also you can look for general solutions on the net.
Thanks for your reply.

I am confused whether If I have to do patch upgradation first because from the latest versions of debian the default is MARIADB.

I would think if I can just a take a dump backup and then do patch upgradation and then import the database.

Last edited by 1s440; 10-23-2018 at 06:54 AM.
 
Old 10-23-2018, 07:12 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You should not have to patch anything. mysqldump creates SQL statements of your old database that you can use to create and import your data into a new database. I don't use mysql so there could be some limitations or restrictions.

When upgrading to the latest debian from version 4 your going to have to install from scratch. Are you upgrading on the same or newer computer?

https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html
 
Old 10-23-2018, 08:31 AM   #5
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You should not have to patch anything. mysqldump creates SQL statements of your old database that you can use to create and import your data into a new database. I don't use mysql so there could be some limitations or restrictions.

When upgrading to the latest debian from version 4 your going to have to install from scratch. Are you upgrading on the same or newer computer?

https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html
Thanks for the reply.

I am upgrading on the same machine where the old version runs. so will there not be a problem if I do both the things at a time?
 
Old 10-23-2018, 08:42 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
debian 4 was released back in 2007, if your computer is that old it may struggle with running newer versions. Posting the hardware specifications would help. Being able to test your backup on mariadb before you delete your debian 4 would provide some confidence that everything works as expected.
 
Old 10-24-2018, 02:41 AM   #7
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
debian 4 was released back in 2007, if your computer is that old it may struggle with running newer versions. Posting the hardware specifications would help. Being able to test your backup on mariadb before you delete your debian 4 would provide some confidence that everything works as expected.
Thanks for the reply. But I am afraid that I am using Vmware for all the OS installations
 
Old 10-24-2018, 04:49 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by 1s440 View Post
Thanks for the reply. But I am afraid that I am using Vmware for all the OS installations
I don't think it is really important. Or how is it related to the original question? But anyway you can create a new VM (or save the old one) before proceeding. If everything works as expected you can drop the old, saved VM, otherwise you can start over again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] MySQL workbench with MariaDB Garrett85 Linux - Software 16 02-02-2016 09:55 PM
Keep using MySQL instead of MariaDB kelaskakap Slackware 17 12-13-2013 06:43 PM
LXer: Migrating to MariaDB from MySQL LXer Syndicated Linux News 0 10-15-2013 05:10 AM
MariaDB/MySQL uses too much RAM martvefun Linux - Server 3 06-23-2013 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration