Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2007
    Posts
    33

    Default MySQL 4 and 5 on one machine....

    Can someone tell me , how to do it ????
    My Client's need's mysql 4 and 5 , but i don't know how i need to install this uppgrade.

    Please help.

    Thanks

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    By default MySQL is installed at /var/lib/mysql path so using rpm it seems impossible to install two MySQL versions on the same server. However if you need two MySQL versions on the same server then you need to install one using RPM at default path /var/lib/mysql and the other need to be installed from source at any different path something like /var/lib/mysqlv4.

  3. #3
    Member
    Join Date
    May 2003
    Posts
    613

    Default

    Quote Originally Posted by Zishan View Post
    By default MySQL is installed at /var/lib/mysql path so using rpm it seems impossible to install two MySQL versions on the same server. However if you need two MySQL versions on the same server then you need to install one using RPM at default path /var/lib/mysql and the other need to be installed from source at any different path something like /var/lib/mysqlv4.
    How would you then allocate a database to run under v4 (assuming it was installed in /var/lib/mysqlv4)?

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    How would you then allocate a database to run under v4 (assuming it was installed in /var/lib/mysqlv4)?
    Depends that in which version database was created. Definitely both will not be managed by cPanel so if v4 need to be used then the databases need to be created from command line. While compiling v4 from source, path for bin files can also be defined to avoid conflict/overriding of other mysql binaries. Lets say mysql4 binaries are installed at /usr/bin/mysql4/ path. Database in MySQL5 can be created from cpanel and in MySQL4 from command line as:

    /usr/bin/mysql4/mysqladmin -uroot -p create database_name
    Last edited by Zishan; 02-20-2009 at 05:03 PM.

Similar Threads & Tags
Similar threads

  1. HTTP/DNS/FTP in a different machine from EXIM/MySQL ?
    By prixone in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-16-2007, 09:33 AM
  2. Replies: 0
    Last Post: 12-28-2005, 02:34 PM
  3. MySQL is killing my machine
    By Sketch in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-22-2004, 02:34 PM
  4. Connecting to MySQL @ local machine
    By iisnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-01-2003, 11:24 PM
  5. moving mysql db from machine to machine
    By unite the cows in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-28-2002, 04:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube