忽略php
https://www.microsoft.com/en-us/download/details.aspx?id=48145html
通常若是本地以前安装过mysql,该组件应该已经安装完成mysql
若是安装完成后,失败,能够尝试以下方式解决:c++
查看php.ini位置,并加入如下配置(放在最顶端便可)git
配置文件位置确认: localhost登陆成功后,最下方有个phpinfo()
的tool,点击进去后搜索php.ini
能够找到路径,
此处的路径为:D:\wamp64\bin\apache\apache2.4.37\bin\php.ini
(示例)github
zend_extension=php_opcache.dll opcache.enable=On opcache.cli_enable=On
下载地址:https://getcomposer.orgsql
安装过程当中,若是发现选择 cmd-line php
没有可选的,则手动选择一下 php.exe的路径,能够在 phpinfo()
中查看php的版本;apache
打开cmd,输入composer -V
可以查看到版本信息则安装成功浏览器
https://dbdiff.github.io/DBDiff
(download.zip文件)composer
随便找个目录解压;
可能还须要一个 vender.zip文件(没有会报错)
修改配置:.dbdiff文件
server1: user: root password: xxxx port: 30118 # for MySQL this is 3306 host: 10.254.9.21 # usually localhost or 127.0.0.1 server2: user: user password: password port: port # for MySQL this is 3306 host: host1 # usually localhost or 127.0.0.1 template: templates/simple-db-migrate.tmpl type: schema include: all nocomments: true
执行比对的语句:
$ ./dbdiff server1.db1:server2.db2
比对结果:
migration.sql