Uninstalling the Previous MySQL Installation in Linux

When we install the new version of mysql in linux then, if there is any old version is existing, it will show some conflict. So we have to remove the old files before proceeding further. The following commands will help you to do this.

# rpm -qa | grep -i mysql
libdbi-dbd-mysql-0.6.5-7
MySQL-python-0.9.1-9
perl-DBD-MySQL-2.9002-1
mod_auth_mysql-20030510-3
php-mysql-4.3.3-6
mysql-3.23.58-4
mysql-bench-3.23.58-4
mysql-server-3.23.58-4
freeradius-mysql-0.9.1-1
mysql-devel-3.23.58-4
qt-MySQL-3.1.2-14

You will want to uninstall any release of MySQL before continueing with the installation of latest MySQL version.

You can use RPM to uninstall the above packages as follows:

# rpm -e libdbi-dbd-mysql
# rpm -e MySQL-python
# rpm -e mod_auth_mysql
# rpm -e php-mysql
# rpm -e mysql-bench
# rpm -e mysql-server
# rpm -e freeradius-mysql
# rpm -e mysql-devel
# rpm -e mysql perl-DBD-MySQL MyODBC qt-MySQL

In addition to removing all MySQL packages, you will also want to remove any mysql group and user that may already be created. The following command will remove both the mysql group as well as the mysql group:

# userdel mysql

Reference here


Technorati : , ,

Advertisements

Steps to change the default port number for Apache HTTP Server

We all know that as default the Apache HTTP Server will ping to port number 80 . What we have to do when a situation of changing this post number comes? Lets see some simple steps for this…

1. Assume that your new port number is 78

2. cp /etc/httpd/ports.conf /etc/httpd/ports.conf_backupgedit /etc/httpd/ports.conf

3. Find this line- Listen 80

4. Replace with the following line – Listen 78

5. Save the edited file

6. /etc/init.d/httpd restartApache HTTP server, Linux


Technorati : ,

Tomcat Administration: Starting Tomcat automatically after Linux boots

If Tomcat was not bundled as part of an operating system distribution, it won’t have the necessary file(s) to start automatically at system boot time. Please visit here to findout the steps that should be taken to start Tomcat automatically after Linux boots.

Some other helpful links for this are

1. Tomcat 5 Administration Basics

2. Installing Tomcat on Linux

3. Installing Web Services with Linux / Tomcat / Apache / Struts / Postgresql / OpenSSL / JDBC / JNDI / DBCP

Technorati tags: Linux, Tomcat