配置环境变量,path里面增长mysql\bin目录的配置mysql
到mysql目录,修改配置文件:my-default.ini,将[mysqld]下面的basedir配置为mysql主目录,datadir修改成上面目录下的data目录。sql
如:ui
[mysqld]server
# 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 = 128Mrem
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bincmd
# 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 = .....it
3. 安装,cmd,进入mysql bin目录,执行:io
C:\Program Files\mysql-5.6\mysql-5.6.24-win32\bin>mysqld -installinnodb
4.启动:import
C:\>net start mysql
5.进入mysql
mysql -u root -p