473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Multiple MySql Servers

Trying to install MySql 4.1 to our Linux server that already has
version 4 installed. I created a my.cnf file and set the following
params:

datadir = /usr/local/mysql-4.1/data/
port = 3304
socket = /var/run/mysql4.1/mysql4.1.sock
pid-file = /var/run/mysql4.1/mysql4.1.pid
log = /var/log/mysql4/mysql4.1.log
The current installation is running from a different port and the data
dir, socket, pid-file, and log are in different locations.

I then attempt to start MySQL like this:

../mysqld_safe --defaults_file=/path/to/my.cnf --user=mysql &

I get the following error:

/var/run/mysqld/mysqld.pid: Permission denied
rm: cannot unlink `/var/run/mysqld/mysqld.pid': Permission denied
Fatal error: Can't remove the pid file: /var/run/mysqld/mysqld.pid
../mysqld_safe: /var/log/mysqld.log: Permission denied
Please remove it manually and start ./mysqld_safe again
mysqld daemon not started

It's as if it is ignoring the "--defaults_file" parameter and using the
same my.cnf file that the previous installation has. Anyone have any
ideas as to what I need to do to get this working?

Jul 23 '05 #1
1 2374
The option is "--defaults-file=", not "--defaults_file="

ej*******@gmail.com wrote:
Trying to install MySql 4.1 to our Linux server that already has
version 4 installed. I created a my.cnf file and set the following
params:

datadir = /usr/local/mysql-4.1/data/
port = 3304
socket = /var/run/mysql4.1/mysql4.1.sock
pid-file = /var/run/mysql4.1/mysql4.1.pid
log = /var/log/mysql4/mysql4.1.log
The current installation is running from a different port and the data
dir, socket, pid-file, and log are in different locations.

I then attempt to start MySQL like this:

./mysqld_safe --defaults_file=/path/to/my.cnf --user=mysql &

I get the following error:

/var/run/mysqld/mysqld.pid: Permission denied
rm: cannot unlink `/var/run/mysqld/mysqld.pid': Permission denied
Fatal error: Can't remove the pid file: /var/run/mysqld/mysqld.pid
./mysqld_safe: /var/log/mysqld.log: Permission denied
Please remove it manually and start ./mysqld_safe again
mysqld daemon not started

It's as if it is ignoring the "--defaults_file" parameter and using the
same my.cnf file that the previous installation has. Anyone have any
ideas as to what I need to do to get this working?


Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marc | last post by:
Hello, Newbie here..... Searching and working this for a week now. We too are having the same problems. Using MySql 4.0.14 and there are "no problems" at all.
0
by: Paul DuBois | last post by:
The MySQL manual section that discusses how to run multiple MySQL servers on a single machine now includes information for Windows. I'd appreciate it if people who try these instructions would...
0
by: sean peters | last post by:
Hi all, i've been weighing the pros and cons of running multiple concurrent mysqld's on one server, to have better control over what databases are on what physical disks. System: 4 processor sun...
0
by: Stefan Kuhn | last post by:
Hi everybody, I want to establish replication between multiple (currently three) servers. Updates/inserts/deletes may happen on all of them. The idea I came up with was to do a...
0
by: Oscar Overdijk | last post by:
Well i want to run multiple servers on the same host, has somebody a Howto for this? Host: RedHat 9 and MySQL 4.0.17 Using the following script: VERSION="40017"...
2
by: siliconmike | last post by:
I have a single instance of MySQL package installed on FreeBSD. I run 2 servers. The second server is run with this command: shell> mysqld_safe --defaults-extra-file=/root/my2.cnf & some...
3
by: rallykarro | last post by:
Hi, How do I at the best way perform select statements over multiple databases? I have a couple of databases containing the same table definitions with diffrent data. Now I want them to act...
3
by: Ben Holness | last post by:
Hi all, I have a php/mysql website where people can upload their own graphics for the buttons and background of pages on the website. This used to run on one server, but I have now been asked...
13
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need...
1
by: sirfsaif | last post by:
I have three servers and each server has separate MySQL and DB. For instance I have common DB i.e. store on all the three servers i.e web1, web2 and web3. I m running a query in DB store on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.