Got it

eApp linux suse system Uninstalling MySQL

308 0 0 0 0
  1. Log in to the local server as the root user.
  2. Right-click in the blank on the desktop and choose Open in Terminal from the shortcut menu. The command line window is displayed.
  3. Run the following command to query the MySQL installation package.

    # rpm -qa |grep mysql

    The following information is displayed:

    libmysqlclient15-5.0.94-0.2.4.1 
    libqt4-sql-mysql-4.6.3-5.10.1 
    mysql-5.0.94-0.2.4.1 
    mysql-client-5.0.94-0.2.4.1 
    libmysqlclient_r15-5.0.94-0.2.4.1     

  4. Run the following command to delete the installation package for MySQL server and client, and data directory. The query result of the previous step shows the version of the installation package to be deleted.

    # rpm -ev mysql-5.0.94-0.2.4.1

    # rpm -ev mysql-client-5.0.94-0.2.4.1

    # rm -rf /var/lib/mysql

    # rm -rf /etc/my.cnf

  5. Run the ps -e|grep mysql command to check whether the MySQL process exists.

    If the following message is displayed, the MySQL process is still running. 9052 and 9652 are process IDs (PIDs).

     9052 ?        00:00:00 mysqld_safe 
     9652 ?        02:40:31 mysqld     

  6. If the MySQL process exists, run the kill -9 PID command to stop the process. For example, kill -9 9052.
  7. Run the following command to check whether the MySQL installation package is deleted.

    # which mysql

    If the following information is displayed, MySQL has been uninstalled.

    which: no mysql in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin)

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.