1.检查默认安装的mysql的字符集 mysql> show variables like '%char%'; +--------------------------+-----------------------------------------------------------+ | Variable_name | Value | +--------------------------+---------------------------------------------------…
(一)MySQL下载 进入https://www.mysql.com/网页,找到DOWNLOADS然后点击进入页面,在页面中,我们选择社区版Community 点击,选择MySQL Community Server下的DOWNLOAD,点击,我们选择相应的操作系统,并点击下载即可 这里需要注意的是,我们下载相应系统的相应版本时,可以不注册,在跳转后页面选择,No thanks, just start my download.即可下载 这里推荐大家下载当前最新版本即可: (二)MySQL安装 当我…
1.首先检查默认安装的字符集 mysql> show variables like '%char%'; +--------------------------+--------------------------------------------------------+ | Variable_name | Value | +--------------------------+--------------------------------------------------------+…
mac OS系统跟linux系统一样也是将用户的全局环境变量保存在.bash_profile配置文件中,只是mac OS默认没有此文件. 1.创建.bash_profile文件 vi ~/.bash_profile 2.添加环境变量 #!/bin/bash LANG=zh_CN.UTF-8 export LANG 3.编译 source .bash_profile…