我想在两台服务器的数据库中实现复制
我先把主库只读
然后复制scpdb到从库目录下
覆盖从库的data
但是执行这一步的时候报错啦还有。。复制过来的data和原来data中的.err  .pid
后缀的文件命名不一样
我把主库的命名改成从库本地的命名了。
请教大神这该怎么解决这是.err的日志121228 20:59:51 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
121228 20:59:51 InnoDB: The InnoDB memory heap is disabled
121228 20:59:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121228 20:59:51 InnoDB: Compressed tables use zlib 1.2.3
121228 20:59:51 InnoDB: Initializing buffer pool, size = 128.0M
121228 20:59:51 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
121228 20:59:51  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
121228 20:59:52  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
121228 20:59:52  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
121228 20:59:53  InnoDB: Waiting for the background threads to start
121228 20:59:54 InnoDB: 1.1.8 started; log sequence number 0
121228 20:59:54 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
121228 20:59:54 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
121228 20:59:54 [Note] Server socket created on IP: '0.0.0.0'.
121228 20:59:54 [Note] Event Scheduler: Loaded 0 events
121228 20:59:54 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.29-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
121228 21:09:44 mysqld_safe A mysqld process already exists
121228 22:08:03 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
121228 22:08:03 InnoDB: The InnoDB memory heap is disabled
121228 22:08:03 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121228 22:08:03 InnoDB: Compressed tables use zlib 1.2.3
121228 22:08:03 InnoDB: Initializing buffer pool, size = 128.0M
121228 22:08:03 InnoDB: Completed initialization of buffer pool
121228 22:08:03 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
121228 22:08:03  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
121228 22:08:03  InnoDB: Waiting for the background threads to start
121228 22:08:04 InnoDB: 1.1.8 started; log sequence number 1595675
121228 22:08:04 [Note] Recovering after a crash using mysql-bin
121228 22:08:04 [Note] Starting crash recovery...
121228 22:08:04 [Note] Crash recovery finished.
121228 22:08:04 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
121228 22:08:04 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
121228 22:08:04 [Note] Server socket created on IP: '0.0.0.0'.
121228 22:08:04 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use