Windows解压版mysql配置

  1. 配置环境变量,path里面增加mysql\bin目录的配置

  2. 到mysql目录,修改配置文件:my-default.ini,将[mysqld]下面的basedir配置为mysql主目录,datadir修改为上面目录下的data目录。

如:


[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

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir = C:\Program Files\mysql-5.6\mysql-5.6.24-win32
datadir = C:\Program Files\mysql-5.6\mysql-5.6.24-win32\data
# port = .....
# server_id = .....

 

3. 安装,cmd,进入mysql bin目录,执行:

C:\Program Files\mysql-5.6\mysql-5.6.24-win32\bin>mysqld -install

4.启动:

C:\>net start mysql

 

5.进入mysql

mysql -u root -p

你可能感兴趣的:(Windows解压版mysql配置)