首页 > 代码库 > MySQL:unknown variable 'master-host=masterIP' [ERROR] Aborting

MySQL:unknown variable 'master-host=masterIP' [ERROR] Aborting

<span style="font-size:18px;">120401 15:45:44 [ERROR] C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: unknown variable 'master-host=192.168.8.111'
120401 15:45:44 [ERROR] Aborting
            
--------解决方案--------------------
            Mysql版本从5.1.7以后开始就不支持“master-host”类似的参数
            在从库上执行如下命令,就可连接主服务器;
            change master to master_host='masterIP', master_user='slave', master_password='slvaePASS';

            slave start;重启</span>



MySQL:unknown variable 'master-host=masterIP' [ERROR] Aborting