RE: Replication Slave I/O Thread won't start on 4.1.8

2005-01-18 Thread Artem Koltsov
> > - make sure log-bin is enabled on both master and slave 
> (looks like it is not present in the slave config)
> 
> Why is log-bin needed on the slave? I thought the master logs changes
> and the slave reads those changes and updates it's copy. Why should
> the slave also log changes it is making? There was no mention of this
> in the docs.

You are right, log-bin is not required on a slave. I have it in my setup with 
log-slave-updates on for a chained replication where slave works as master as 
well.

> > - check replication account permissions on the master. I 
> don't remember details, but you can find required permissions 
> in the docs on mysql web site, or doc file in mysql 
> installation directory.
> 
> Turns out when my hosting provider "installed" MySQL 4.1, it was
> actually an install over a 3.x data directory. The Priv tables were
> never updated, so I never had the appropriate "REPLICATION SLAVE"
> Priv, so the thread never started. It never did say why it did not
> start though.

Check this one out 
http://dev.mysql.com/doc/mysql/en/Upgrading-grant-tables.html for priv table 
upgrade. Also you slave account may need more permissions if you want to use 
LOAD * FROM MASTER commands. 

> Threads are now running, but data is not getting replicated. Need to
> figure that out now.

Below are settings I have for both slave and master. Maybe you can try them in 
your setup.

default-character-set=utf8
# time zone has to be the same on master and slave for correct replication 
(from 4.1)
default-time-zone=GMT
log_warnings
log_slow_queries
log-bin
log-slave-updates
slave_compressed_protocol=1
# skip illegal collation error
slave-skip-errors=1267
 
> thanks again.
> Frank
> 
 
Attention:
Any views expressed in this message are those of the individual sender, except 
where the message states otherwise and the sender is authorized to state them 
to be the views of any such entity. The information contained in this message 
and or attachments is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material.  If you 
received this in error, please contact the sender and delete the material from 
any system and destroy any copies.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Replication Slave I/O Thread won't start on 4.1.8

2005-01-18 Thread Frank Febbraro
> - make sure log-bin is enabled on both master and slave (looks like it is not 
> present in the slave config)

Why is log-bin needed on the slave? I thought the master logs changes
and the slave reads those changes and updates it's copy. Why should
the slave also log changes it is making? There was no mention of this
in the docs.

> - check replication account permissions on the master. I don't remember 
> details, but you can find required permissions in the docs on mysql web site, 
> or doc file in mysql installation directory.

Turns out when my hosting provider "installed" MySQL 4.1, it was
actually an install over a 3.x data directory. The Priv tables were
never updated, so I never had the appropriate "REPLICATION SLAVE"
Priv, so the thread never started. It never did say why it did not
start though.

Threads are now running, but data is not getting replicated. Need to
figure that out now.

thanks again.
Frank

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Replication Slave I/O Thread won't start on 4.1.8

2005-01-18 Thread Artem Koltsov
- make sure log-bin is enabled on both master and slave (looks like it is not 
present in the slave config)
- check replication account permissions on the master. I don't remember 
details, but you can find required permissions in the docs on mysql web site, 
or doc file in mysql installation directory.


-Original Message-
From: Frank Febbraro [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 9:41 AM
To: mysql@lists.mysql.com
Subject: Re: Replication Slave I/O Thread won't start on 4.1.8


One thing I left out is that we are running  4.1.8-Max-log not 
4.1.8-standard-log

Could that have anything to do with it?

Thanks for any insight,
Frank


On Mon, 17 Jan 2005 15:55:06 -0500, Frank Febbraro
<[EMAIL PROTECTED]> wrote:
> Hey all,
> 
> I have setup replication in the past on 4.0.x servers so I figured I
> knew what I was doing...silly me. I reread all of the docs and best I
> can tell I followed them sufficiently.
> 
> When I start my slave, the SQL Thread starts, but the I/O thread never
> starts, and thus the Master Thread never starts.  There are no error
> messages in any logs, or the show slave status screen. Below are my
> relevant configurations. I am very sorry if I have left anything
> significant out.
> 
> Thank you for any help,
> Frank
> 
> MASTER CONFIG
> ~~
> [EMAIL PROTECTED] cat /etc/my.cnf
> [mysqld]
> datadir=/var/lib/mysql
> socket=/var/lib/mysql/mysql.sock
> server-id=100
> log-bin
> binlog-do-db=internal
> binlog-ignore-db=mysql
> 
> [mysql.server]
> user=mysql
> basedir=/var/lib
> 
> [safe_mysqld]
> err-log=/var/log/mysqld.log
> pid-file=/var/run/mysqld/mysqld.pid
> 
> ~~
> mysql> show master status\G
> *** 1. row ***
> File: server2-bin.04
> Position: 874
> Binlog_Do_DB: internal
> Binlog_Ignore_DB: mysql
> 1 row in set (0.00 sec)
> 
> ~~
> SLAVE CONFIG
> ~~
> [EMAIL PROTECTED] cat /etc/my.cnf
> [mysqld]
> datadir=/var/lib/mysql
> socket=/var/lib/mysql/mysql.sock
> server-id=200
> replicate-do-db=internal
> 
> [mysql.server]
> user=mysql
> basedir=/var/lib
> 
> [safe_mysqld]
> err-log=/var/log/mysqld.log
> pid-file=/var/run/mysqld/mysqld.pid
> 
> ~~
> [EMAIL PROTECTED] cat /var/lib/mysql/master.info
> 14
> server2-bin.03
> 79
> cms.internal.org
> slave
> slavepass
> 3306
> 60
> 0
> 
> ~~
> mysql> show slave status \G
> *** 1. row ***
>  Slave_IO_State:
> Master_Host: cms.internal.org
> Master_User: slave
> Master_Port: 3306
>   Connect_Retry: 60
> Master_Log_File: server2-bin.03
> Read_Master_Log_Pos: 79
>  Relay_Log_File: server1-relay-bin.01
>   Relay_Log_Pos: 4
>   Relay_Master_Log_File: server2-bin.03
>Slave_IO_Running: No
>   Slave_SQL_Running: Yes
> Replicate_Do_DB: internal
> Replicate_Ignore_DB:
>  Replicate_Do_Table:
>  Replicate_Ignore_Table:
> Replicate_Wild_Do_Table:
> Replicate_Wild_Ignore_Table:
>  Last_Errno: 0
>  Last_Error:
>Skip_Counter: 0
> Exec_Master_Log_Pos: 79
> Relay_Log_Space: 4
> Until_Condition: None
>  Until_Log_File:
>   Until_Log_Pos: 0
>  Master_SSL_Allowed: No
>  Master_SSL_CA_File:
>  Master_SSL_CA_Path:
> Master_SSL_Cert:
>   Master_SSL_Cipher:
>  Master_SSL_Key:
>   Seconds_Behind_Master: NULL
>

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

 
Attention:
Any views expressed in this message are those of the individual sender, except 
where the message states otherwise and the sender is authorized to state them 
to be the views of any such entity. The information contained in this message 
and or attachments is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material.  If you 
received this in error, please contact the sender and delete the material from 
any system and destroy any copies.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Replication Slave I/O Thread won't start on 4.1.8

2005-01-18 Thread Frank Febbraro
One thing I left out is that we are running  4.1.8-Max-log not 
4.1.8-standard-log

Could that have anything to do with it?

Thanks for any insight,
Frank


On Mon, 17 Jan 2005 15:55:06 -0500, Frank Febbraro
<[EMAIL PROTECTED]> wrote:
> Hey all,
> 
> I have setup replication in the past on 4.0.x servers so I figured I
> knew what I was doing...silly me. I reread all of the docs and best I
> can tell I followed them sufficiently.
> 
> When I start my slave, the SQL Thread starts, but the I/O thread never
> starts, and thus the Master Thread never starts.  There are no error
> messages in any logs, or the show slave status screen. Below are my
> relevant configurations. I am very sorry if I have left anything
> significant out.
> 
> Thank you for any help,
> Frank
> 
> MASTER CONFIG
> ~~
> [EMAIL PROTECTED] cat /etc/my.cnf
> [mysqld]
> datadir=/var/lib/mysql
> socket=/var/lib/mysql/mysql.sock
> server-id=100
> log-bin
> binlog-do-db=internal
> binlog-ignore-db=mysql
> 
> [mysql.server]
> user=mysql
> basedir=/var/lib
> 
> [safe_mysqld]
> err-log=/var/log/mysqld.log
> pid-file=/var/run/mysqld/mysqld.pid
> 
> ~~
> mysql> show master status\G
> *** 1. row ***
> File: server2-bin.04
> Position: 874
> Binlog_Do_DB: internal
> Binlog_Ignore_DB: mysql
> 1 row in set (0.00 sec)
> 
> ~~
> SLAVE CONFIG
> ~~
> [EMAIL PROTECTED] cat /etc/my.cnf
> [mysqld]
> datadir=/var/lib/mysql
> socket=/var/lib/mysql/mysql.sock
> server-id=200
> replicate-do-db=internal
> 
> [mysql.server]
> user=mysql
> basedir=/var/lib
> 
> [safe_mysqld]
> err-log=/var/log/mysqld.log
> pid-file=/var/run/mysqld/mysqld.pid
> 
> ~~
> [EMAIL PROTECTED] cat /var/lib/mysql/master.info
> 14
> server2-bin.03
> 79
> cms.internal.org
> slave
> slavepass
> 3306
> 60
> 0
> 
> ~~
> mysql> show slave status \G
> *** 1. row ***
>  Slave_IO_State:
> Master_Host: cms.internal.org
> Master_User: slave
> Master_Port: 3306
>   Connect_Retry: 60
> Master_Log_File: server2-bin.03
> Read_Master_Log_Pos: 79
>  Relay_Log_File: server1-relay-bin.01
>   Relay_Log_Pos: 4
>   Relay_Master_Log_File: server2-bin.03
>Slave_IO_Running: No
>   Slave_SQL_Running: Yes
> Replicate_Do_DB: internal
> Replicate_Ignore_DB:
>  Replicate_Do_Table:
>  Replicate_Ignore_Table:
> Replicate_Wild_Do_Table:
> Replicate_Wild_Ignore_Table:
>  Last_Errno: 0
>  Last_Error:
>Skip_Counter: 0
> Exec_Master_Log_Pos: 79
> Relay_Log_Space: 4
> Until_Condition: None
>  Until_Log_File:
>   Until_Log_Pos: 0
>  Master_SSL_Allowed: No
>  Master_SSL_CA_File:
>  Master_SSL_CA_Path:
> Master_SSL_Cert:
>   Master_SSL_Cipher:
>  Master_SSL_Key:
>   Seconds_Behind_Master: NULL
>

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]