Hello.
I plan to use mysql with only instance database so I can stop one database for maintenance without stopping every thing.
When one reads through the my.cnf config file, it is not clear if we must use at the same time a single database mysql plus any instances mysqld2 (for app1), mysqld3 (for app2), and so on.
Or may I get rid of the mysqld process and start only mysqld2, mysqld3, ....
I have try that but could not start any instance. Of course I have configured a systemd service file.
Or may I use mysqld1 as mysql database pointing to mysql as first mandatory database and then add more instance when necessary.
here code for mysqld@.service
my config file in /etc/my.cnf
I would like some advise.
Every things are configured in /etc/my.cnf
Accordingly, nothing particular is configured in /etc/systemd/system/mysqld@.service file.
My database files, socket files, pid files are located in /bdd/bd_1/project1, /bdd/bd_2/project2...
The owner of all files is set to mysql.
The log files are located in /var/log/mysql/project1, /var/log/mysql/project2....
The owner of all files is set to mysql.
In the config file /etc/my.cnf, rename [mysqld] to [mysqld0] so you get rid of the single database.
Don't forget to open port for mysql on the firewall
Enabling instances ( instances start at bootup )
here is /etc/systemd/system/mysqld@.service
here is /etc/my.cnf
Here status for instance 3 :
Hello,
can someone please suggest me in configuring the mysql db on redhat cluster, I have few questions.
1. where do I have to configure heart beat links, and is there any file in the redhat cluster that we update it to use these ipaddress and these interface on the node.
2. I am configuring... (0 Replies)
Hi,
Trying to setup mediawiki on a system but having problems configuring mysql:
CC=/usr/bin ./configure
checking build system type... powerpc-ibm-aix6.1.0.0
checking host system type... powerpc-ibm-aix6.1.0.0
checking target system type... powerpc-ibm-aix6.1.0.0
checking for a... (9 Replies)
I've been bitten by using a lock or pid file to prevent multiple instances of a script. A user typed kill -9, and the pid file didn't go away. You can't trap -9. So when he tried to restart, it said "already running", and I got trouble report. Argh.
So here's what we came up with:
# Stop if... (1 Reply)
I need to install a tomcat6 with multiple instances like instance1,instance2 and instance3 in a server.
I came to know that for that we need to install tomcat6,apache2.0,mod_jk1.2 and jre with tools.jar installed.And we need to create multiple instances with same web.xml and difference... (0 Replies)
Hi all,I have some questions of forking new process,the code is below.Any help will be appreciated.
1 #! /bin/bash
2
3 PIDS=$(pidof sh $0)
4 P_array=( $PIDS )
5 echo $PIDS
6 let "instances = ${#P_array}-1"
7
8 echo "$instances instance(s)" of this script running."
9... (4 Replies)
Hi All,
I have a problem mentioned below.
I have a script which performs line by line operations on several files.
I have a temp_file storing the list of names of the file to be validated. Right not in while loop i validate these files one by one.
Is there anyway that i can modify... (1 Reply)
I am trying to debug the following script. It appears that when the check for script running occurs, it's finding the actual grep statement and causing the script believe the script is already running. This is deployed on two different servers where one works fine, the other doesn't. Any ideas?
... (2 Replies)
Hi Everyone,
I am using solaris 5.10.
I have a java process running in server mode in unix.
The problem is that it automatically forks i.e creates a child process.
I mean suddenly two instances of that process start running , in which the process-id of first instance is the parent... (5 Replies)
;)Hi Everyone,
I am using solaris 5.10.
I have a java process running in server mode in unix.
The problem is that it automatically forks i.e creates a child process.
I mean suddenly two instances of that process start running , in which the process-id of first instance is the parent... (0 Replies)
Dear all.....
I am currently writing a Help-Desk / Knowledge Base application using PHP/PostGreSQL.
I authenticate the user using a quite elaborate mechanism of cookies. The problem is that using cookies (I also have a version using sessions with the same problem), I can only seem to get one... (4 Replies)