Windows解壓版mysql配置

  1. 配置環境變量,path裏面增長mysql\bin目錄的配置mysql

  2. 到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

相關文章
相關標籤/搜索