最近用到mysql,發現若是想使用最新版本64 bit mysql 須要獨特的配置和使用方式mysql
結合最近的研究總結一下安裝過程。sql
首先下載:http://dev.mysql.com/downloads/mysql/ui
下載完畢,解壓出來spa
添加my.ini 配置文件,配置內容以下:code
[mysqld]
# These are commonly set, remove the # and set as required.
basedir =C:\Program Files\mysql-5.6.26-winx64
datadir =C:\Program Files\mysql-5.6.26-winx64\data
port =3306
#server_id =127.0.0.1
default-character-set=utf8
join_buffer_size = 128M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
在系統添加服務server
C:\Program Files\mysql-5.6.26-winx64\bin>mysqld --install MYSQL --defaults-file="C:\Program Files\mysql-5.6.26-winx64\my.ini"
Service successfully installed.blog
而後進入 服務啓動rem
刪除服務mysqld -removeget