Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to migrate a mysql databases from a old server to a new server ( Redhat ) , can advise what I need to do ,is it just copy all .frm , .MYI & .MYD files to new server will do ? or I need to do export and inport data ? thx
The mysql database in a mysql server is the database that is used to administer user accounts and other information that is internal to a mysql server. If that is the only directory in /var/lib/mysql, then I would say yes, it seems that there are no other databases.... not a very useful mysql server.
Since this is a database that is internal to mysql itself, I would be hesitant to blindly copy it to another installation.
@freelinuxtutorials: mysqldump does the locks as reqd.
@OP: only dump/import app schems, not the metadata eg mysql schema, unless the DB versions are the same; even then it may have issues unless the 2 systems are identical.
What will be reqd is to use SHOW GRANTS to get a list of users and access perms.
you want mysqldump for that, you should have it installed. Easy peasy
mysqldump -u DBUSER -p DBNAME > DBNAME.sql
The man pages for both will give you more in depth information
I found the below command to export all database by one time .
To dump all databases, use the --all-databases option:
shell> mysqldump --all-databases > all_databases.sql
I also try to use mysqlimport to import it to another server , but it pops the database is not available , I need to create all databases before run mysqlimport ? if no need , is there method that is easy import the databases ? thx