mysql zip install
2016-03-31 19:09
471 查看
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
![](https://images2015.cnblogs.com/blog/786311/201603/786311-20160331184532769-1308725724.png)
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
![](https://images2015.cnblogs.com/blog/786311/201603/786311-20160331185705488-988515276.png)
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.
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
![](https://images2015.cnblogs.com/blog/786311/201603/786311-20160331184532769-1308725724.png)
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
![](https://images2015.cnblogs.com/blog/786311/201603/786311-20160331185705488-988515276.png)
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.
相关文章推荐
- MySQL 正则表达式
- mysql 查询当天当周当月的数据
- Logstash分析MySQL慢查询日志
- 修改ibdata1大小的验证以及如何使用mysqld_multi管理多实例
- MySQL 用户执行存储过程的权限
- Mysql 学习笔记
- 【干货】MySQL5.6配置同步复制的新方法以及常见问题的解决方法
- mysql存储过程中遇到的问题
- MySQL数据库备份和恢复
- mysql数据库误操作 binlog方式恢复数据
- mysql show processlist分析
- (转)ON DUPLICATE KEY UPDATE --mysql的一个有趣语法
- mysql查询中文出现乱码
- MySQL存储过程概述
- hibernate像MySQL数据库里面存值是中文乱码的解决合辑
- Mysql 存储引擎中InnoDB与Myisam的主要区别
- MySQL 乐观锁 简例
- Mysql event时间触发器,实现定时修改某些符合某一条件的某一字段
- MySQL DataSource 性能对比(2015-8-19)
- spark 开发环境读取mysql