Lines Matching full:mysql
7 # This script creates a CPU set and binds the MySQL process to the
8 # set. It restarts MySQL if specified in the option. This script needs
14 MYSQL_PATH='/etc/init.d/mysql.server'
15 MYSQL_PID_PATH='/var/lib/mysql/atlantis1.mtv.corp.google.com.pid'
20 # The base cpuset directory for mysql.
21 MYSQL_CPUSET='mysql'
22 # CPUs in MySQL cpuset. E.g. 0-2,7,12-14.
29 echo -e "Create and bind the MySQL process to a specified CPU set.\n"
34 echo -e " MySQL process and delete the CPU set. It does not"
35 echo -e " restart MySQL nor create a new CPU set. (Default:"
38 echo -e " for the MySQL PID automatically)."
39 echo -e " -r Restart MySQL (Default: disabled)."
79 # Get the PID of the MySQL.
87 # Get PID from MySQL PID file if it is set.
88 print_info "Getting MySQL PID from ${MYSQL_PID_PATH}..."
90 { print_error "No MySQL process found."; return 1; }
93 print_info "Searching for MySQL PID..."
96 { print_error "No MySQL process found."; return 1; }
101 print_error "No MySQL process found."
107 print_error "No running MySQL process is found."
112 print_info "MySQL PID is ${pid}."
210 # Restart MySQL.
212 print_info "Restarting MySQL..."
217 # Get PID of MySQL.
223 # Make directory for MySql.
224 print_info "Making a cpuset for MySQL..."
235 # Attach/Rebind MySQL process to the cpuset. Note that this command
238 print_info "Bind MySQL process to the cpuset..."