search
HomeDatabaseMysql TutorialDetailed introduction to the installation and configuration method of mysql 5.7.13 under Mac

This article mainly introduces the graphic tutorial of mysql 5.7.13 Installation configuration method under Mac. The content is very detailed and has certain reference value. Interested friends You can refer to the

mysql 5.7.13 installation tutorial under Mac, which is very detailed and recorded as follows

First download the installation package. If you are not afraid of trouble, you can directly download mysql from Baidu

Detailed introduction to the installation and configuration method of mysql 5.7.13 under Mac

This kind of installation requires using the command line, which may cause various problems. Alternatively, you can go directly to the official website to download the installation package in DMG format (Ps: It is best to download directly using Thunder to avoid network speed problems. The download is extremely slow and the speed is almost the same as the normal download speed. I only took two minutes)

1. Installation package downloaded from the official website: Just open it all the way and take the next step. After the installation is completed

Detailed introduction to the installation and configuration method of mysql 5.7.13 under Mac

Remember the password You will need this to change the password

Open the system preferences and you will find that there are more at the bottom A mysql icon

Detailed introduction to the installation and configuration method of mysql 5.7.13 under Mac

This means that the installation is successful. Click it and click start. Mysql will start. If there is no response, just restart it. No need to bother, you will find that the After half a day, it was finally solved with a restart. After restarting, you will find that your Mysql automatically starts serving.

At this time, if you execute it directly from the command line, you will definitely be prompted. We need to add mysql to the environment

variable

:

$ mysql
 -bash: mysql: command not found
Ps: To enter

edit mode

in vim, press i and then you Mysql is installed

2. Use the command line downloaded from Baidu to install

First unzip the package you downloaded and it should look like this

Detailed introduction to the installation and configuration method of mysql 5.7.13 under MacRename the first one to mysql (just for convenience) and then move it to /usr/local/

Enter the /bin/ folder in the console

执行vim ~/.bash_profile
  在该文件中添加mysql/bin的目录,见pic7:
  PATH=$PATH:/usr/local/mysql/bin  
添加完成后,按esc,然后输入wq保存。
最后在命令行输入source ~/.bash_profile
上面的路径是你 /usr/local/下的mysql文件夹可能会和下载的名字一样 自己进去看看

Then wait for a while and the installation will be completed. Finally, you will be given a string of passwords. Remember, to change the password later, you must use the

installation and the previous steps to configure the environment variables

At this time, if you open mysql on the command line, you will find that it will prompt an error. Don't worry about it and it will be a waste of time. Just restart it.

Then your mysql will be usable.

3. Change it Root user password

The initial password is smelly and long, so be sure to change it to what you want.

mysqld --initialize --user=‘你的用户名'

Get it done and call it a day. The official provides a graphical management interface. You can go to the official website for workbench yourself. Using Thunder is still very fast.

The above is the detailed content of Detailed introduction to the installation and configuration method of mysql 5.7.13 under Mac. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
ip与mac绑定什么意思ip与mac绑定什么意思Mar 09, 2023 pm 04:44 PM

ip与mac绑定是指将特定的IP地址与特定的MAC地址关联起来,使得只有使用该MAC地址的设备才能够使用该IP地址进行网络通信。ip与mac绑定可以防止被绑定的主机的IP地址不被假冒,前提条件:1、MAC地址是唯一的,并且不可假冒;只能绑定与路由器直接相连的网络上的主机(也就是主机的网关在路由器上)。

mac版下载是什么意思mac版下载是什么意思Mar 06, 2023 am 09:52 AM

mac版下载的意思是当软件在选择安装时,选择MAC版下载;Windows版和MAC版是两个不同的操作系统,所以大多数软件在选择安装的同时需要选择Windows版还是MAC版。

mac鼠标滚轮相反怎么办mac鼠标滚轮相反怎么办Mar 16, 2023 pm 05:44 PM

mac鼠标滚轮相反的解决办法:1、打开mac电脑,点击屏幕的苹果标志,然后选择“系统偏好设置”;2、在“系统偏好设置”窗口中,选择“鼠标”;3、在“鼠标”窗口中,将“滚动方向:自然”前面的勾去掉即可。

修复文件共享在 MacOS Ventura 中不起作用修复文件共享在 MacOS Ventura 中不起作用Apr 13, 2023 am 11:34 AM

修复 SMB 文件共享在 MacOS Ventura 中不起作用的问题从  Apple 菜单打开 Mac 上的“系统设置”应用程序转到“常规”,然后转到“共享”找到“文件共享”的开关并将其关闭通过转到  Apple 菜单并选择重新启动来重新启动 Mac重新启动后,返回共享系统设置面板并将“文件共享”重新设置为打开位置像往常一样恢复文件共享,它应该按预期工作如果 MacOS Ventura Mac 与另一台 Mac 或设备之间的文件共享突然再次停止工作,您可能需要在几天后或随机重复此过程。

如何防止 Mac 在显示器关闭时进入睡眠状态 (MacOS Ventura)如何防止 Mac 在显示器关闭时进入睡眠状态 (MacOS Ventura)Apr 13, 2023 pm 12:31 PM

显示器关闭时如何防止 Mac 休眠如果您希望 Mac 显示器能够在整个计算机不进入睡眠状态的情况下关闭,请在此处进行适当的设置调整:下拉  Apple 菜单并转到“系统设置”转到“显示”点击“高级...”切换“防止显示器关闭时电源适配器自动休眠”的开关现在 Mac 显示屏可以关闭,同时防止 Mac 本身进入睡眠状态。这可能主要与 Mac 笔记本电脑用户相关,但即使是那些没有 MacBook 的用户也可能会发现该功能很有用。

mac克隆是什么意思mac克隆是什么意思Jan 31, 2023 am 10:33 AM

mac克隆全称mac地址克隆,是固化在网卡上串行EEPROM中的物理地址,通常有48位长。mac克隆一般应用在路由器上,用户在用电脑直接拨号上网,后来又加了个路由器,通过路由器来实现多台电脑同时上网,这时要用到mac地址克隆了,就是把当前的电脑的mac地址克隆到路由器中去,因为运营商是把你的电脑mac地址绑定你的账号的,所以得克隆以后才能用。

mac的shift键是哪个键mac的shift键是哪个键Mar 13, 2023 pm 02:20 PM

mac的shift键是fn键上方、caps lock键下方的一个键,该键在键盘最左侧,由右下往上数第2个键;shift键是键盘中的上档转换键,可以通过“Ctrl+Shift”组合键来切换输入法。

fcpx快捷键有哪些fcpx快捷键有哪些Mar 17, 2023 am 10:21 AM

fcpx快捷键有:1、“Command-H”快捷键,用于隐藏应用程序;2、“Option-Command-H”快捷键,用于隐藏其他应用程序;3、“Option-Command-K”快捷键,用于键盘自定;4、“Command-M”快捷键,用于最小化;5、“Command-O”快捷键,用于打开资源库等。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.