mysql zip install

本文详细介绍了MySQL 5.7.11版本在Windows 2008系统下的安装步骤及遇到的问题解决方法。包括正确配置my.ini文件、初始化数据库、解决权限问题等关键操作。

1.Question Description:

   1.1 version: mysql-5.7.11-64

   1.2 form: zip file

   1.3 >mysqld --install (successfully)

   1.4 you create a directory called "data" in the mysql package, and create a file my.ini and edit the code like 'datadir...' ,

   1.5 >net start mysql 

        you will see

    

 

2. Solution:

    2.1 uninstall the mysql clearly

         2.1.1 >mysqld --remove

         2.1.2   delete the mysql directory

         2.1.3    delete the regedit(http_local_machine)

    2.2  extract the mysql zip again,

           if your operation system is windows 2008 , you should extract the zip to the location where you can create directory without authirization(administrator role),

           because when you executor the command  mysqld --initialize,  you may see the error info: can't create the directory.....

    2.3  >mysqld --initialize

           

 

   3.  Thinking

     3.1 there are some solutions like copy data folder from version 5.6 to version 5.7;

     3.2 create my.ini file and cancel the comment "basedir","datadir..";

     Don't Mysql know that ??

     as the solution 2.3 show, we only need to executor the command "mysqld --initialize".

     So we should read the doc of the software first rather than read A or B in the web site.

转载于:https://www.cnblogs.com/rocky-fang/p/5342389.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值