Ubuntu install MySQL and directory location

Source: Internet
Author: User

Installation

sudo apt-get install mysql-server mysql-client

View installation Port conditions

sudo netstat-tap | grep MySQL

Configuration file Location

sudo vim/etc/mysql/my.cnf

Turn off services

/etc/init.d/mysql Start/stop

Unloading

[Plain]View PlainCopy
sudo apt-get autoremove--purge mysql-server-5.5.  +   sudoapt-get remove mysql-server  sudo apt-get autoremovemysql-server  sudo apt -get Remove mysql-common  '{print $}' | sudoxargsdpkg-p  



Other files default location

[Plain]View PlainCopy
/usr/bin                 client program and script   /usr/sbin                mysqld server   /var/lib/mysql           log file, Database  [key to know this]  /usr/share/doc/Packages  document   /usr/include/mysql       contains (header) File   /usr/lib/mysql           library   /usr/share/mysql         error message and Character set  file /usr/ Share/sql-bench     Benchmark Program  

Ubuntu install MySQL and directory location

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.