Ubuntu9.1 install and uninstall MySQL on the server

Source: Internet
Author: User
1. First install mysql-server-5.1
Sudo apt-Get install mysql-server-5.1 in this process, you need to enter the root user password, at this time do not enter, just press Enter. If you enter it, there will be problems, and I don't understand why. 2, then install mysql-serversudo apt-Get install mysql-server3, and then install phpmyadminsudo apt-Get install phpMyAdmin and then log on to http: // After the root password of phpMyAdmin user is empty, you can set a new password for the root user. Note: do not generate the new password automatically when you set it. If yes, remember the generated password. 4. UninstallThe uninstall process is the opposite of the installation process. Sudo apt-Get install mysql-serversudo apt-Get install mysql-server-5.1sudo apt-Get autoremove phpMyAdmin also deletes all configuration files under/var/lib/MySQL, this can 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.

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.