Mac notebook installation MySQL

Source: Internet
Author: User

  1. Enter the address in the browser:dev.mysql.com/downloads/mysql/, as shown in:

  2. Go to the following interface, directly click on the location below, select Skip Login, click after this direct download, as shown in:

  3. After the download is complete, double-click to open, pop up the following screen, then continue to click, as shown in: 2

    Q
  4. Continue until the installation is complete.

  5. Start MySQL, after installation, go to the settings to see the following options, if there is a MySQL description has been installed successfully, as shown in:

  6. After clicking, start MySQL as shown in:

  7. To modify a database password

    When the boot is complete, open the terminal

    Alias Mysql=/usr/local/mysql/bin/mysql

    Alias Mysqladmin=/usr/local/mysql/bin/mysqladmin

    Copy the above two instructions to the terminal to run, give two addresses to a temporary alias

    The goal is that the next execution can execute MySQL or mysqladmin directly

    There is no need to switch directories back and forth, as shown in:

  8. Next, modify the database password and execute the following command

      Mysqladmin-u root-p Password root123

    Root123 is my new password, I change it to the password I want to set

    Press ENTER, prompt for password, at this time let enter the password is not your computer's password, but the database password.

    There are default usernames and passwords before 5.7, both are root

    However, after 5.7, only the default user name P:root

    The default password is automatically assigned to you, which is automatically assigned to you when you install it.

  9. We can also check in from the MAC notification bar, which is to automatically generate a database password, as shown in:

  10. The default password is localhost: After all the content, enter it after the return. (Mac in the command business to enter the password is not visible, so when entering the password, be careful not to enter the error), as shown in:

  11. Enter the database, see the information above, modify the success

    And then into the database.

    Be sure to do it: Alias Mysql=/usr/local/mysql/bin/mysql

    If it is not executed, you can switch to the above directory to execute the MySQL command.

    Otherwise prompt to find not MySQL

    Next, execute the following command: Mysql-u root-p

    Note-P does not write anything, then enter

    Will let you enter the password, at this time the password is you change the password above

    What I'm typing here: root123

    See the following information, all the instructions have entered the database, as shown in:

Mac notebook installation MySQL

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.