View Single Post
  #3 (permalink)  
Old 09-07-2008
Lovelinux's Avatar
Lovelinux Lovelinux is offline
Super Moderator
 
Join Date: Jun 2008
Posts: 251
Thanks: 24
Thanked 50 Times in 28 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