Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Cài đặt CentOS và ứng dụng > MySQL trên CentOS

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-06-2008
Hackingart Member
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 2 Times in 1 Post
Default Setup MySQL Replication - How to?

Hiện tại đang có một con server database chạy trên Windows, em muốn cài thêm 2 con slave cho con server này, một trên windows, và một trên linux. Cách làm như thế nào? Anh chị nào đă thực hiện xin chỉ giáo giúp!
Reply With Quote
  #2 (permalink)  
Old 30-06-2008
Admin's Avatar
Administrator
 
Join Date: Jun 2008
Location: USA
Posts: 355
Thanks: 16
Thanked 17 Times in 15 Posts
Send a message via Skype™ to Admin
Default

Bạn đọc kỹ tài liệu này, bạn nhé
http://www.hackingart.com/download/M...eplication.zip
Reply With Quote
  #3 (permalink)  
Old 09-07-2008
Lovelinux's Avatar
Super Moderator
 
Join Date: Jun 2008
Posts: 211
Thanks: 22
Thanked 45 Times in 23 Posts
Thumbs up Cai dat 2 MYSQL Server tren cung 1 may chu Window hoac Linux

Windows:
Cac buoc cai dat mysql tren cung 1 may (chu y: co the set trong 1 file cau hinh hoac set trong file .ini - o day minh xai ca 2 loai)
1. Copy 2 thu muc mysql505_3306 va mysql5053307 vao o C
2. Tao 2 file my3306.ini va my3307.ini tai C:\windows\ voi noi dung
[mysqld]
# set basedir to your installation path
basedir=C:\\mysql505_3306
# set datadir to the location of your data directory
datadir=C:\\mysql505_3306\\data
thay doi lai path cho 3007...
3. Setup services: vao cmd
a. vao C:\mysql505_3306\bin chay mysqld -install mysql3306 --defaults-file=C:\windows\my3306.ini --port=3306
b. vao C:\mysql505_3307\bin chay mysqld -install mysql3307 --defaults-file=C:\windows\my3307.ini --port=3307
4. start services check and .......Success.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:35 AM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.