Sponsored Content
Operating Systems Linux Red Hat Can't uninstall MYSQL from RED HAT ES Post 302101623 by CollenM on Wednesday 3rd of January 2007 10:32:43 AM
Old 01-03-2007
Question Can't uninstall MYSQL from RED HAT ES

Hi Everyone

Could you kindly advise on how I should do a chkconfig and uninstalling mysql rpm on Red hat ES.Please check the errors that I'm getting below. Smilie

I need to uninstall MySQL completely from my linux system ver 2.4.21-37 and use the chkconfig command to switch it on permanently after reinstalling it but I'm getting the below error on both my servers.My SQL is installed and the mysqld is running.

klmback:mms$ rpm -e mysql*
error: package mysql-3.23.58-16.RHEL3.1.i386.rpm is not installed
error: package mysql-3.23.58-1.i386.rpm is not installed
error: package mysql-bench-3.23.58-16.RHEL3.1.i386.rpm is not installed
error: package mysql-client-3.23.58-1.i386.rpm is not installed
error: package mysql-devel-3.23.58-16.RHEL3.1.i386.rpm is not installed
error: package mysql-server-3.23.58-1.72.i386.rpm is not installed
klmback:mms$ rpm -e MySQL*
error: package MySQL is not installed
error: package MySQL-client-4.0.21-0.i386.rpm is not installed
error: package MySQL-client-standard-4.1.16-1.rhel3.i386.rpm is not installed
error: package MySQL-devel-standard-4.1.16-1.rhel3.i386.rpm is not installed
error: package MySQL-python-0.9.1-6.i386.rpm is not installed
error: package MySQL-server-4.0.21-0.i386.rpm is not installed
error: package MySQL-server-standard-4.1.16-1.rhel3.i386.rpm is not installed
error: package MySQL-shared-standard-4.1.16-1.rhel3.i386.rpm is not installed
klmback:mms$ rpm -qa | grep i mysql
grep: mysql: No such file or directory
klmback:mms$ rpm -qa | grep -i mysql
MySQL-client-standard-4.1.21-0.rhel3
MySQL-server-standard-4.1.21-0.rhel3
klmback:mms$

root 32090 0.0 0.0 4212 1120 ? S 16:26 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/klmback.pid
mysql 32114 0.0 0.7 48428 14716 ? S 16:26 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/k
root 459 0.0 0.0 6844 2024 ? S 16:42 0:00 sshd: mms [priv]

klmback: mms logged out at Wed Jan 3 17:04:15 SAST 2007
Connection to klmback closed.
klmdisp:mms$ chkconfig
-bash: chkconfig: command not found
klmdisp:mms$ chkconfig mysqld on
-bash: chkconfig: command not found
klmdisp:mms$

I tried to install the rpm packed for chkconfig but does not want to install.

Thanks
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Red Hat 7.2.....

I just installed red hat 7.2 on my laptop. it's dual booted with xp and red hat. when i boot in to linux it boots up to the screen to ask me my name and pass....i put in root and my password. after this it goes to a blue screen and sits there. the after about 2 minutes it comes up with a fatal... (1 Reply)
Discussion started by: muzscman
1 Replies

2. Linux

Red Hat?

I have a Red Hat upgrade disk. I installed it and it corrupted my entire hard drive! I had gotten the disks out of a Dummy's book at my local library. Trying to install 'Red Hat', has cost me $100.00 in damages. (The cool part is my friend gave me that $100.00 part) Ah...A 120gig Hard Drive. Just... (3 Replies)
Discussion started by: hdk_mkr
3 Replies

3. UNIX for Dummies Questions & Answers

Red Hat 9 help

please help me how to install softwares in linux.i have a ethernet internet connection.i try to open the site on LAN to download internet client.but i cannot as our lan supports only internet explorer....i downloaded the linux client by booting thru XP......but i cannot c my NTFS partition thru... (0 Replies)
Discussion started by: shobhit143
0 Replies

4. Linux

red hat ee 2.6.9-42

hello. I would be greatfull if someone could tell me how will i see what dns server and gateway my red hat server uses. I tryied to find out by typing ifconfig command but i got : -bash: ifconfig: command not found , although man ifonconfig gives output with info about using that command. Is... (3 Replies)
Discussion started by: tonijel
3 Replies

5. Red Hat

Red Hat E 3

I'm am working with a Red Hat Enterprise 3 server. This is a dedicated server that is supposedly dedicated to one domain, but I have been tasked with trying to figure out if there are files on this system that are being accessed by other IP's. Does anyone know if how I would go about finding... (0 Replies)
Discussion started by: chrisPlusPlus
0 Replies

6. Red Hat

Red-hat

Hello, How do I see what IP addresses are connected to my machine? thanks (2 Replies)
Discussion started by: sonomao
2 Replies

7. Red Hat

How to install and uninstall apache on Red Hat Linux 5

Hi All, I installed Linus on virtual PC on my system. I want to configure apache on it. Also i want to install nagios and want to access through web broser from my system. How can I do this. Kindly provide soln its required urgently......... plsssssssssssssssss (4 Replies)
Discussion started by: sunray
4 Replies

8. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies
MYSQL_INSTALL_DB()														MYSQL_INSTALL_DB()

NAME
mysql_install_db - initialize MySQL data directory SYNOPSIS
mysql_install_db [options] DESCRIPTION
mysql_install_db initializes the MySQL data directory and creates the system tables that it contains, if they do not exist. mysql_install_db is a shell script and is available only on Unix platforms. (As of MySQL 5.6, mysql_install_db is a Perl script and can be used on any system with Perl installed.) To invoke mysql_install_db, use the following syntax: shell> mysql_install_db [options] Because the MySQL server, mysqld, needs to access the data directory when it runs later, you should either run mysql_install_db from the same system account that will be used for running mysqld or run it as root and use the --user option to indicate the user name that mysqld will run as. It might be necessary to specify other options such as --basedir or --datadir if mysql_install_db does not use the correct locations for the installation directory or data directory. For example: shell> scripts/mysql_install_db --user=mysql --basedir=/opt/mysql/mysql --datadir=/opt/mysql/mysql/data mysql_install_db needs to invoke mysqld with the --bootstrap and --skip-grant-tables options. Note If you have set a custom TMPDIR environment variable when performing the installation, and the specified directory is not accessible, mysql_install_db may fail. If so, unset TMPDIR or set TMPDIR to point to the system temporary directory (usually /tmp). mysql_install_db supports the following options, which can be specified on the command line or in the [mysql_install_db] group of an option file. (Options that are common to mysqld can also be specified in the [mysqld] group.) Other options are passed to mysqld. For information about option files, see Section 4.2.3.3, "Using Option Files". mysql_install_db also supports the options for processing option files described at Section 4.2.3.4, "Command-Line Options that Affect Option-File Handling". o --basedir=path The path to the MySQL installation directory. o --datadir=path, --ldata=path The path to the MySQL data directory. o --force Cause mysql_install_db to run even if DNS does not work. Grant table entries that normally use host names will use IP addresses. o --rpm For internal use. This option is used during the MySQL installation process for install operations performed using RPM packages. o --skip-name-resolve Use IP addresses rather than host names when creating grant table entries. This option can be useful if your DNS does not work. o --srcdir=path For internal use. This option specifies the directory under which mysql_install_db looks for support files such as the error message file and the file for populating the help tables. o --user=user_name The system (login) user name to use for running mysqld. Files and directories created by mysqld will be owned by this user. You must be root to use this option. By default, mysqld runs using your current login name and files and directories that it creates will be owned by you. o --verbose Verbose mode. Print more information about what the program does. o --windows For internal use. This option is used for creating Windows distributions. COPYRIGHT
Copyright (C) 1997, 2014, Oracle and/or its affiliates. All rights reserved. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/. SEE ALSO
For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/. AUTHOR
Oracle Corporation (http://dev.mysql.com/). MYSQL_INSTALL_DB()
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy