![]() |
mysql replication
Hello i try to do a database replication as i described at:
http://www.howtoforge.com/mysql_database_replication but when i type this to mycnf log-bin = /var/log/mysql/mysql-bin.log binlog-do-db=exampledb server-id=1 the mysql doesnt start Ofcourse i have the right values at these fields. Any suggestion? Thank you. |
Do you see any error messages? Are there any errors in your logs?
|
i think that this is from log:
070922 19:10:25 [Note] /usr/libexec/mysqld: Normal shutdown 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:25 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:10:27 [Note] /usr/libexec/mysqld: Shutdown complete 070922 19:10:27 mysqld ended 070922 19:10:28 mysqld started /usr/libexec/mysqld: File '/var/log/mysql/mysql-bin.index' not found (Errcode: 2) 070922 19:10:28 [ERROR] Aborting 070922 19:10:28 [Note] /usr/libexec/mysqld: Shutdown complete 070922 19:10:28 mysqld ended 070922 19:11:10 mysqld started /usr/libexec/mysqld: File '/var/log/mysql/mysql-bin.index' not found (Errcode: 2) 070922 19:11:10 [ERROR] Aborting 070922 19:11:10 [Note] /usr/libexec/mysqld: Shutdown complete 070922 19:11:10 mysqld ended 070922 19:12:09 mysqld started 070922 19:12:09 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.0.27' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution 070922 19:18:19 [Note] /usr/libexec/mysqld: Normal shutdown 070922 19:18:19 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:18:21 [Note] /usr/libexec/mysqld: Shutdown complete 070922 19:18:21 mysqld ended 070922 19:18:21 mysqld started error: Found option without preceding group in config file: /etc/my.cnf at line: 15 Fatal error in defaults handling. Program aborted 070922 19:18:22 mysqld ended 070922 19:19:15 mysqld started 070922 19:19:15 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.0.27' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution 070922 19:25:01 [Note] /usr/libexec/mysqld: Normal shutdown 070922 19:25:01 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:25:01 [ERROR] /usr/libexec/mysqld: Sort aborted 070922 19:25:03 [Note] /usr/libexec/mysqld: Shutdown complete 070922 19:25:03 mysqld ended 070922 19:25:04 mysqld started /usr/libexec/mysqld: File '/var/log/mysqld.index' not found (Errcode: 13) 070922 19:25:04 [ERROR] Aborting 070922 19:25:04 [Note] /usr/libexec/mysqld: Shutdown complete 070922 19:25:04 mysqld ended 070922 19:25:57 mysqld started 070922 19:25:57 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.0.27' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution |
What's the output of
Code:
ls -l /varCode:
ls -l /var/log |
ok this is
Code:
Last login: Wed Sep 26 11:10:03 2007 from athedsl-258585.home.otenet.gr |
Please try this:
Code:
mkdir /var/log/mysql |
OK this was the problem so i set it up BUT i come along with another problem when all was set the slave just replicated what was in the binlog 000001 and stoped but as i see my master has created other 2 binlogs 000002 and 000003 this is ok?
Also at binlog 1 and 2 there is a stop and binolg hasn't thats why it is 10 times bigger. UPDATE:OK i see that master.info took the changes for the binlog but it doesn't work. |
Please take a look at the logs on the slave. It should tell you if/what's wrong.
|
Ok first of all thank you for your time.
Now i start it again from the begining i have all set it good at master but although it creates binlogs can not read it through phpmyadmin (at my previous set it was readable)the log file of mysql shows nothing. At the slave i set as it has to be i also read other how to and a lot of things at mysql documentation. But at the log file shows that Code:
070929 20:31:02 [Note] /usr/libexec/mysqld: Normal shutdownNow i try to solve it from here because i have a large database and its difficult to start it from scratch. Thank you again for your attention to my problem. |
OK sudenly it seems that it is working i did'nt do something it just started to work THANK YOU for your help at this matter and many others that you have helped me :) .
|
| All times are GMT +2. The time now is 13:58. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.