容器技术交流

 找回密码
 立即注册
查看: 3139|回复: 3

Famp下的mysql 使用mysqlhotcopy备份?

[复制链接]
发表于 2009-7-29 20:33:34 | 显示全部楼层 |阅读模式
使用FAMP安装完成后,根据网上的教程进行mysql数据库自动备份
教程地址:http://hi.baidu.com/hy0kl/blog/item/6c29ed88a46ab79ca4c272ae.html

看到/usr/local/mysql/bin目录里面存在可执行文件mysqlhotcopy
但提示
mysqlhotcopy:  Command not found


是mysql不支持还是编译选项没呢??
请教
发表于 2009-7-29 23:08:05 | 显示全部楼层
那是外部脚本,不是mysql自带的
 楼主| 发表于 2009-7-30 13:16:31 | 显示全部楼层
我在FAMP安装好的msyql文件夹里面发现了mysqlhotcopy,这个怎不生效的呢?

如果按照网上的进入/usr/ports/databases/mysql51-scripts进行make install,由于是先安装了Famp5.1.0,也出现以前装rrdtool那的错误无法继续装下去

所以想看看有没办法用编译的方式安装??

郁闷死了.又耗了几天时间..

[ 本帖最后由 xiori 于 2009-7-30 13:30 编辑 ]
 楼主| 发表于 2009-7-31 09:40:00 | 显示全部楼层
错误提示:

===>  Installing for mysql-scripts-5.1.36
===>   mysql-scripts-5.1.36 depends on file: /usr/local/lib/perl5/site_perl/5.8.9/mach/DBD/mysql.pm - not found
===>    Verifying install for /usr/local/lib/perl5/site_perl/5.8.9/mach/DBD/mysql.pm in /usr/ports/databases/p5-DBD-mysql51
===>   p5-DBD-mysql51-4.012 depends on file: /usr/local/lib/perl5/site_perl/5.8.9/mach/DBI.pm - found
===>   p5-DBD-mysql51-4.012 depends on file: /usr/local/bin/perl5.8.9 - found
===>   p5-DBD-mysql51-4.012 depends on shared library: mysqlclient.16 - found
===>  Configuring for p5-DBD-mysql51-4.012
Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 82.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 464.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 464.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 464.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.pl --testuser=username

Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 464.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 464.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at ./Makefile.PL line 464.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Failed to determine directory of mysql.h. Use

  perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

  perl Makefile.PL --help
*** Error code 2

Stop in /usr/ports/databases/p5-DBD-mysql51.
*** Error code 1

Stop in /usr/ports/databases/mysql51-scripts.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-8 06:15 , Processed in 0.029039 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表