Ubuntu Install MySQL server method

Source: Internet
Author: User

Recently try to install MySQL in My computer so the I can practise some SQL statement on sever. But there is some problem while the install MySQL package in my Ubuntu system. I Hava tried lots of ways to move on. At the last. I Find There is a

Best-to-install MySQL in My computer, so I want-share with other friends-like-who finds solutions for such prog Ram and hope my suggetion would give some help,even less.


First we should keep our system clear to install the MySQL before (beacuse I Hava installed some other types on compters, and There might be some files which still existed in system,to handle that I use some commands such as

sudo rm /var/lib/mysql/ -R

sudo rm /etc/mysql/ -R

)

You can do following steps:

#sudo apt-get autoremove mysql* --purge

#sudo apt-get remove apparmor


#sudo apt-get install mysql-server Mysql-common mysql-client


Then you can login in your own MySQL (MySQL have running in your system while installed)



Conclusions:

In the Linux system we hava some troubles on installing software,but there is some easy ways to achieve your goals.

Redhat system can use the "yum" to install, and Ubuntu can use Apt-get install

Maybe help, give my best wish to you!

                                                                                                                                                                      Jiangjian

                                                                                                                                                                     in Shanghai

Ubuntu Install MySQL server method

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.