If you are looking for the relay logs and you did not configure a name for them, mysqld will use the server's hostname. Why ?
According to the MySQL Documentation on the relay-log
option
The basename for the relay log. The default basename is
host_name-relay-bin. The server writes the file in the data directory
unless the basename is given with a leading absolute path name to
specify a different directory. The server creates relay log files in
sequence by adding a numeric suffix to the basename.
Due to the manner in which MySQL parses server options, if you specify
this option, you must supply a value; the default basename is used
only if the option is not actually specified. If you use the
--relay-log option without specifying a value, unexpected behavior is likely to result; this behavior depends on the other options used, the
order in which they are specified, and whether they are specified on
the command line or in an option file. For more information about how
MySQL handles server options, see Section 4.2.3, “Specifying Program
Options”.
@Shlomi already said in his answer to look in the datadir. Login to mysql and run these
SHOW GLOBAL VARIABLES LIKE 'datadir';
SHOW GLOBAL VARIABLES LIKE 'hostname';
In the OS, go to that folder, run ls -l
(or dir
for you people using Windows) and look for any file that begins with the hostname followed by -relay-bin.
followed by six digits.
The only way to disable relay logs is to disable replication completely. Otherwise, MySQL will generate relay logs once CHANGE MASTER TO
is executed by hand or by a mysqld startup.