Mysql upgrade error: mysqld: unknown variable ‘master-host=
Are you trying to setup on replication on mysql5.5+ ? After upgrading, your mysql can’t start,and the log show “unknown variabled ‘master-host=’ The following options are removed in MySQL 5.5. If you attempt to start mysqld with any of these options in MySQL 5.5, the server aborts with an unknown variable error. –master-host –master-user –master-password –master-port Solution, comment the master- related variables. Do following, On Master: mysql>GRANT REPLICATION SLAVE ON . TO ‘slave_user’@’%’ IDENTIFIED BY ‘‘; (Replace with a real password!) mysql>FLUSH PRIVILEGES; mysql>FLUSH TABLES WITH READ LOCK; mysql>SHOW MASTER STATUS; get the DB dump. mysql>UNLOCK TABLES; On Slave: import the DB dump mysql>stop slave; mysql>CHANGERead More →