How to Fixed.
* Add the --local-infile in you mysql command.
mysql -u root -pfatword test --local-infile* Or Add the local-infile=1 in [mysql] section in your my.cnf file.
[mysql] local-infile=1
TIPS: my.cnf commonly found in /etc/my.cnf
mysql -u root -pfatword test --local-infile* Or Add the local-infile=1 in [mysql] section in your my.cnf file.
[mysql] local-infile=1
INSERT INTO catalog_category_product(category_id, product_id,position ) VALUES(48,85545,2);
INSERT INTO catalog_category_product_index(
category_id,
product_id,
position,
is_parent,
store_id,
visibility
)
VALUES(
48, -- CategoryID
85545, -- Product ID
1, -- Posistion Normaly 1(1)
1, -- Parent category ID
3, -- Store ID
4, -- Visibility
);
The exercise, we need to skip that error Duplicate key and can be done by adding the line in the mysql config my.cnf
slave-skip-errors = 1062
If you encounter this kind of error. Just easy, you need only to skip the counter by by 1 until you fix it.
mysql> SLAVE STOP;
mysql> SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
mysql> START SLAVE;
set-variable = innodb_buffer_pool_size=100M
set-variable = innodb_additional_mem_pool_size=10M
innodb_flush_log_at_trx_commit=1
slave_exec_mode = IDEMPOTENT
slave-skip-error = 1062