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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-08-2010, 11:38 PM
|
#1
|
Member
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83
Rep:
|
Some pointers required for configuration of Mysql on RHEL
I am new to mysql can some one provide me the documentation or some recommended links to start the configuration of mysql server on RHEL
Also if i get the database schema, how can i replicate the same in my machine.
Any documentation for this??
Many thanks in advance.
Regards
Sahil
|
|
|
02-09-2010, 12:11 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
|
|
|
02-09-2010, 12:25 AM
|
#3
|
Member
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83
Original Poster
Rep:
|
Thanks Chris..!!
|
|
|
02-09-2010, 05:19 AM
|
#4
|
Member
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83
Original Poster
Rep:
|
Also can you please advice on how to take database dump and restore.
I have to setup new mysql server and have to dump in all the data from already existing server...
Can you advice on steps to be followed...!!
|
|
|
02-09-2010, 05:24 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
See the mysqldump cmd at that link for backups; restore techniques will be shown also.
|
|
|
02-09-2010, 09:40 PM
|
#6
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
I'm normally strictly a CLI guy, but when it comes to MySQL I've found phpMyAdmin to be invaluable.
Just be aware that using it comes at a price. (You'll need to be able/willing to deploy the rest of the application stack -- namely a web server and php environment.)
|
|
|
02-11-2010, 03:53 AM
|
#7
|
Member
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83
Original Poster
Rep:
|
Hi Thanks for your replies:-
I have a query,
The scenario is We have two machines connected over LAN, i just have SSH access to other machine (where all the database is there), i just configured the mysql server, using RHEL5... I want to have all the database replicated to my machine which exists on other machine.
What should be the simplest process, to achieve this....
i read about mysqldump as mentioned by chris...not sure how to take care of ssh part etc..!!
Can you plz provide pointers on steps needs to be followed..!!
|
|
|
02-11-2010, 05:33 PM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
Do you need
1. full on real time replication? http://dev.mysql.com/doc/refman/5.0/...iguration.html
2. regular backups & copy to backup server just in case? In this case you write a backup script to use mysqldump then scp the file across.
|
|
|
02-12-2010, 08:39 AM
|
#9
|
Member
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156
Rep:
|
For quick dump you can use the mysqldump command as chrism01 said.
There is my mysqldup script i'm using in my debian box.
Code:
mysqldump --opt -u user_name --password=your_password db_name > path_to_file/backup.`date +%Y.%m.%0e`.sql
and to restore the file is just simple
Code:
mysql --user=user_name --password=your_password db_name < name of the file.sql
Hope it helps
|
|
|
All times are GMT -5. The time now is 03:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|