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 am trying to create two instances of mysql on the same server. I am running fedora core 6 mysql 5.0.22. I have amended the my.cnf, but both instances are not running. It creates the mysql tables in the default /var/lib/mysql ignoring the my.cnf file. Can anyone tell what I should add to my.cnf to get 2 instances of mysql on the same server in /var/lib/mysql1 and /var/lib/mysql2
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user = mysql
socket = /var/lib/mysql1/mysql.sock1
port = 3307
pid-file = /var/lib/mysql1/mysql.pid1
datadir = /var/lib/mysql1/data
basedir = /var/lib/mysql1
user = mysql
socket = /var/lib/mysql2/mysql.sock2
port = 3308
pid-file = /var/lib/mysql2/mysql.pid2
datadir = /var/lib/mysql2/data
basedir = /var/lib/mysql2
user = mysql
Thanks for reply steve. We are trying to create a test and a live environment. The apache web server has two virtual host a dev and live url. The live url I want to point to the live instance. ie port 3307 datadir /var/lib/mysql1/data. The second instance is used by the test url ie port 3308 /var/lib/mysql2/data.