zoukankan      html  css  js  c++  java
  • MySQL5.7.9(GA)的安装

    1、解压ZIP文件到安装目录;

    2、进入到bin目录,试运行mysqld --console,查看可能的出错信息,安装相应的辅助软件,如.net V4.0等;

    3、编辑my.ini文件,关键内容如下:

        [client] default-character-set=utf8 [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 = 1023M

        # 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 =D:/Application/mysql-5.7.9-winx64/

        datadir =D:/Application/mysql-5.7.9-winx64/data/

        tmpdir  =D:/Application/mysql-5.7.9-winx64/data/

        log-error=D:/Application/mysql-5.7.9-winx64/data/mysql_error.log

         innodb_log_file_size=100M

        port = 3307

        server_id = 1302

    注意文件路径要用“/”而不是“”。

    4、生成数据库:

       mysqld --initialize

       结束时会产生一个root的随机密码,记住。

    5、启动数据库:

      mysqld  --defaults-file="D:Applicationmysql-5.7.9-winx64my.ini" --console

    6、关闭数据库:

      mysqladmin -uroot -p shutdown

    7、安装服务:

    mysqld.exe --install MySQL579 --defaults-file="D:Applicationmysql-5.7.9-winx64my.ini"

  • 相关阅读:
    idea添加类注释和方法注释
    蓝桥杯ALGO-1,区间k大数查询
    personalblog
    ul+li水平居中的几种方法
    前端ps部分
    帝国cms-tab
    帝国cms判断某一字段是否为空
    帝国cms建站总结-(分页)
    Js获取验证码倒计时
    前端截取字符串:JS截取字符串之substring、substr和slice详解
  • 原文地址:https://www.cnblogs.com/wxb-km/p/4976858.html
Copyright © 2011-2022 走看看