mac mysql,my.conf全网安装与配置,一篇文章解决所有问题

本文详细介绍了如何在Mac上安装和配置MySQL,包括创建my.cnf文件、设置权限以及解决配置过程中遇到的问题,如错误7489237和SQL模式更改导致的启动失败等。提供了一个全面的my.cnf配置文件,确保避免常见错误,确保MySQL顺利启动。
摘要由CSDN通过智能技术生成

mysql安装与配置

去官网下载安装之后

打开终端

sudo vim /etc/my.cnf

mac是没有cnf文件的, vim会自动创建 然后在里面添加

# Example MySQL config file for medium systems.
​
#
​
# This is for a system with little memory (32M - 64M) where MySQL plays
​
# an important part, or systems up to 128M where MySQL is used together with
​
# other programs (such as a web server)
​
#
​
# MySQL programs look for option files in a set of
​
# locations which depend on the deployment platform.
​
# You can copy this option file to one of those
​
# locations. For information about these locations, see:
​
# http://dev.mysql.com/doc/mysql/en/option-files.html
​
#
​
# In this file, you can use all long options that a program supports.
​
# If you want to know which options a program supports, run the program
​
# with the "--help" option.
​
# The following options will be passed to all MySQL clients
​
[client]
​
default-character-set=utf8
​
#password = your_passw
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值