Install and uninstall MySQL on ubuntu9.1 Server

Source: Internet
Author: User

This article describes how to install and uninstall MySQL on the ubuntu9.1 server, in fact, it is not very difficult to install and uninstall the MySQL database on the ubuntu9.1 server, as long as you perform the correct steps.

1. First install MySQL-server-5.1

 
 
  1. sudo apt-get install MySQL-server-5.1 

In this process, you need to enter the root user password. At this time, you do not need to enter, just press Enter. If you enter it, there will be problems, and I don't understand why.

2. Install MySQL-server again.

 
 
  1. sudo apt-get install MySQL-server 

3. Install phpmyadmin again.

 
 
  1. sudo apt-get install phpmyadmin 

Log on to http: // hostname/phpmyadmin.

User root

The password is empty.

After entering, you can set a new password for the root user.

Note: do not generate a new password automatically. If it is automatically generated, remember the generated password.

4. Uninstall

The process of uninstallation is opposite to that of MySQL installation.

 
 
  1. sudo apt-get install MySQL-server  
  2. sudo apt-get install MySQL-server-5.1  
  3. sudo apt-get autoremove phpmyadmin 

Delete all configuration files under/var/lib/MySQL to solve the problem of losing the MySQL root Password.

Copy the database file to another directory.

If the process is dead during apt-get remove, use sudo dpkg-configure-a in other consoles.

The above content is an introduction to the installation and uninstallation of MySQL under ubuntu9.1 server. I hope you will have some gains.

The above content describes how to install and uninstall MySQL on the ubuntu9.1 server. I hope it will help you in this regard.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.