Install MySQL and visualization tools on Mac

Mac installation MySQL visualization tool MySQL Workbench

1. Install MySQL

Mac download address: https://dev.mysql.com/downloads/mysql/

insert image description here

Double-click the installation package

insert image description here

all the way next

insert image description here

After the installation is complete, you can find MySQL in System Preferences

insert image description here
Click to enter the MySQL setting interface
insert image description here
to open the command line terminal to execute

  • alias mysql=/usr/local/mysql/bin/mysql
  • alias mysqladmin=/usr/local/mysql/bin/mysqladmin
  • mysqladmin -u root -p password root123

2. Install MySQL Workbench

Download the installation package

https://cdn.mysql.com//Downloads/MySQLGUITools/mysql-workbench-community-8.0.27-macos-x86_64.dmg

insert image description here

  • Open after installation
  • Enter the password set when installing MySQL
    insert image description here
  • create database
    insert image description here
  • create table
    insert image description here

Guess you like

Origin blog.csdn.net/ForeverMyheart/article/details/124660815