美文网首页
windows安装mysql

windows安装mysql

作者: yahzon | 来源:发表于2018-05-16 15:56 被阅读12次

1、下载zip
2、解压到D:,改名为D:\mysql ,创建D:\mydata\,把D:\mysql\data复制到D:\mydata
3、创建my.ini放置到c:\windows,内容:

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....

# set basedir to your installation path
basedir=D:\\mysql
# set datadir to the location of your data directory
datadir=D:\\mydata\\data

4、初始启动

mysqld --console

5、启动

mysqld 

相关文章

网友评论

      本文标题:windows安装mysql

      本文链接:https://www.haomeiwen.com/subject/rcopdftx.html