MySQL mac Installation

Source: Internet
Author: User

The installation of MySQL Mac took some effort. Initially want to save trouble with brew installation, the result is always a problem, the original brew installation MySQL is not so simple, but also some configuration. Simply go to the website to download:

http://www.mysql.com/downloads/selection

Select Community Server and download the DMG file

Which, during the installation process, will tell you a temporary password, be sure to remember.

When the installation is complete, open the terminal and start the MySQL server

sudo /usr/local/mysql/support-files/mysql.server start

Then, start MySQL

Mysql-u root-p# need to enter the temporary password provided during installation # after entering MySQL, reset password mysql> Set PASSWORD = PASSWORD (" your password " /c8>);

Import data

# Create a databaseCreate DatabaseSNPs Use Databasesnps# Creating a tableCreate Tablesnps_table (IDChar( -), ChrChar(Ten), POSint);# LoadData to TableLoadData local infile'Test.csv'  into TableSnps_table Fields terminated by ','Lines terminated by '\ r';# CheckDataSelect *  fromSnps_table

That's it for the moment

ref:http://xiaoxuetu.github.io/2015/11/19/mysql-environment/

MySQL mac Installation

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.