免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 11389 | 回复: 9
打印 上一主题 下一主题

[FreeBSD] mysql已经装上并运行了,但提示Command not found  关闭 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-19 14:09 |只看该作者 |倒序浏览
mysql已经装上并运行了,但提示Command not found,请问从那里开始检查。

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
2 [报告]
发表于 2008-07-19 14:31 |只看该作者
你的命令。
/usr/local/bin里面有没有mysqld_safe?

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:50:28
3 [报告]
发表于 2008-07-19 15:49 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2008-07-19 16:23 |只看该作者
原帖由 lsstarboy 于 2008-7-19 14:31 发表
你的命令。
/usr/local/bin里面有没有mysqld_safe?


没有你说的那个文件,不知你说的这个文件是什么用的。

demo@demo[/usr/local/etc]# cd /usr/local/bin
demo@demo[/usr/local/bin]# ls
total 23822
-rwxr-xr-x  1 root  wheel   113078 Jul 19 13:16 a2p
-rwxr-xr-x  1 root  wheel     6916 Jul 19 14:32 apr-1-config
-rwxr-xr-x  1 root  wheel     6296 Jul 19 14:32 apu-1-config
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 autoconf -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel    13420 Jul 19 14:22 autoconf-2.61
-r-xr-xr-x  1 root  wheel     3318 Jul 19 14:22 autoconf-wrapper
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 autoheader -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel     8261 Jul 19 14:22 autoheader-2.61
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 autom4te -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel    30316 Jul 19 14:22 autom4te-2.61
-r-xr-xr-x  1 root  wheel    18489 Jul 19 14:21 autopoint
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 autoreconf -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel    19916 Jul 19 14:22 autoreconf-2.61
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 autoscan -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel    16906 Jul 19 14:22 autoscan-2.61
-r-xr-xr-x  1 root  wheel    33295 Jul 19 14:22 autoupdate-2.61
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 autoupdates -> autoconf-wrapper
-rwxr-xr-x  2 root  wheel    36613 Jul 19 13:16 c2ph
-r-xr-xr-x  1 root  wheel  1232640 Jul 19 12:58 comp_err
-rwxr-xr-x  1 root  wheel     3852 Jul 19 13:16 cpan
-rwxr-xr-x  1 root  wheel   598512 Dec  8  2007 cvpasswd
-rwxr-xr-x  1 root  wheel   874580 Dec  8  2007 cvsup
-r-xr-xr-x  1 root  wheel     1477 Jul 19 13:22 dbilogstrip
-r-xr-xr-x  1 root  wheel     6312 Jul 19 13:22 dbiprof
-r-xr-xr-x  1 root  wheel     5494 Jul 19 13:22 dbiproxy
-rwxr-xr-x  1 root  wheel    24083 Jul 19 13:16 dprofpp
-rwxr-xr-x  1 root  wheel    38085 Jul 19 13:16 enc2xs
-r-xr-xr-x  1 root  wheel    31444 Jul 19 14:20 envsubst
-rwxr-xr-x  1 root  wheel    24124 Jul 19 13:16 find2perl
-r-xr-xr-x  1 root  wheel    29684 Jul 19 14:20 gettext
-r-xr-xr-x  1 root  wheel     4653 Jul 19 14:20 gettext.sh
-r-xr-xr-x  1 root  wheel    41948 Jul 19 14:21 gettextize
-r-xr-xr-x  1 root  wheel   189492 Jul 19 14:07 gm4
-r-xr-xr-x  1 root  wheel   153136 Jul 19 14:22 gmake
-rwxr-xr-x  1 root  wheel    27337 Jul 19 13:16 h2ph
-rwxr-xr-x  1 root  wheel    60047 Jul 19 13:16 h2xs
-r-xr-xr-x  1 root  wheel    14690 Jul 19 14:22 help2man
-r-xr-xr-x  1 root  wheel    20312 Jul 19 14:09 iconv
lrwxr-xr-x  1 root  wheel       16 Jul 19 14:22 ifnames -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel     3992 Jul 19 14:22 ifnames-2.61
-r-xr-xr-x  1 root  wheel     7472 Jul 19 12:58 innochecksum
-rwxr-xr-x  1 root  wheel     4265 Jul 19 13:16 instmodsh
-rwxr-xr-x  1 root  wheel    15736 Jul 19 13:16 libnetcfg
-r-xr-xr-x  1 root  wheel   220590 Jul 19 12:28 libtool
-r-xr-xr-x  1 root  wheel    10776 Jul 19 12:28 libtoolize
-r-xr-xr-x  1 root  wheel    14212 Jul 19 14:20 msgattrib
-r-xr-xr-x  1 root  wheel    14228 Jul 19 14:21 msgcat
-r-xr-xr-x  1 root  wheel    10524 Jul 19 14:20 msgcmp
-r-xr-xr-x  1 root  wheel    13444 Jul 19 14:21 msgcomm
-r-xr-xr-x  1 root  wheel    11484 Jul 19 14:21 msgconv
-r-xr-xr-x  1 root  wheel    11336 Jul 19 14:21 msgen
-r-xr-xr-x  1 root  wheel     9540 Jul 19 14:21 msgexec
-r-xr-xr-x  1 root  wheel    16752 Jul 19 14:21 msgfilter
-r-xr-xr-x  1 root  wheel    56688 Jul 19 14:20 msgfmt
-r-xr-xr-x  1 root  wheel    81284 Jul 19 14:21 msggrep
-r-xr-xr-x  1 root  wheel    33092 Jul 19 14:21 msginit
-r-xr-xr-x  1 root  wheel    29204 Jul 19 14:20 msgmerge
-r-xr-xr-x  1 root  wheel    21124 Jul 19 14:20 msgunfmt
-r-xr-xr-x  1 root  wheel    12816 Jul 19 14:21 msguniq
-r-xr-xr-x  1 root  wheel     1418 Jul 19 13:22 msql2mysql
-r-xr-xr-x  1 root  wheel  1236752 Jul 19 12:58 my_print_defaults
-r-xr-xr-x  1 root  wheel  1426896 Jul 19 12:58 myisam_ftdump
-r-xr-xr-x  1 root  wheel  1541800 Jul 19 12:58 myisamchk
-r-xr-xr-x  1 root  wheel  1437492 Jul 19 12:58 myisamlog
-r-xr-xr-x  1 root  wheel  1459992 Jul 19 12:58 myisampack
lrwxr-xr-x  1 root  wheel       20 Jul 19 13:50 mysql -> /MYSQLPATH/bin/mysql
-r-xr-xr-x  1 root  wheel     5278 Jul 19 12:37 mysql_config
-r-xr-xr-x  1 root  wheel     3670 Jul 19 13:22 mysql_convert_table_format
-r-xr-xr-x  1 root  wheel    11628 Jul 19 13:22 mysql_explain_log
-r-xr-xr-x  1 root  wheel     3245 Jul 19 13:22 mysql_find_rows
-r-xr-xr-x  1 root  wheel      483 Jul 19 13:22 mysql_fix_extensions
-r-xr-xr-x  1 root  wheel     5790 Jul 19 12:37 mysql_fix_privilege_tables
-r-xr-xr-x  1 root  wheel    13364 Jul 19 12:58 mysql_install_db
-r-xr-xr-x  1 root  wheel     6586 Jul 19 13:22 mysql_secure_installation
-r-xr-xr-x  1 root  wheel    16687 Jul 19 13:22 mysql_setpermission
-r-xr-xr-x  1 root  wheel    14476 Jul 19 13:22 mysql_tableinfo
-r-xr-xr-x  1 root  wheel  1218924 Jul 19 12:58 mysql_tzinfo_to_sql
-r-xr-xr-x  1 root  wheel    44640 Jul 19 12:37 mysql_upgrade
-r-xr-xr-x  1 root  wheel     5788 Jul 19 12:58 mysql_upgrade_shell
-r-xr-xr-x  1 root  wheel    84636 Jul 19 12:58 mysql_waitpid
-r-xr-xr-x  1 root  wheel     3818 Jul 19 13:22 mysql_zap
-r-xr-xr-x  1 root  wheel   110818 Jul 19 13:22 mysqlaccess
-r-xr-xr-x  1 root  wheel    25788 Jul 19 12:37 mysqladmin
-r-xr-xr-x  1 root  wheel    69800 Jul 19 12:37 mysqlbinlog
-r-xr-xr-x  1 root  wheel    11153 Jul 19 12:37 mysqlbug
-r-xr-xr-x  1 root  wheel    20732 Jul 19 12:37 mysqlcheck
-r-xr-xr-x  1 root  wheel    22606 Jul 19 13:22 mysqld_multi
-r-xr-xr-x  1 root  wheel    13032 Jul 19 12:58 mysqld_safe
-r-xr-xr-x  1 root  wheel    60712 Jul 19 12:37 mysqldump
-r-xr-xr-x  1 root  wheel     6356 Jul 19 13:22 mysqldumpslow
-r-xr-xr-x  1 root  wheel    32556 Jul 19 13:22 mysqlhotcopy
-r-xr-xr-x  1 root  wheel    16412 Jul 19 12:37 mysqlimport
-r-xr-xr-x  1 root  wheel    20412 Jul 19 12:37 mysqlshow
-r-xr-xr-x  1 root  wheel   117984 Jul 19 12:37 mysqltest
-r-xr-xr-x  1 root  wheel     6384 Jul 19 12:37 mysqltestmanager-pwgen
-r-xr-xr-x  1 root  wheel     7436 Jul 19 12:37 mysqltestmanagerc
-r-xr-xr-x  1 root  wheel    29428 Jul 19 14:20 ngettext
-r-xr-xr-x  1 root  wheel     1247 Jul 19 15:16 pcre-config
-r-xr-xr-x  1 root  wheel    23852 Jul 19 15:16 pcregrep
-r-xr-xr-x  1 root  wheel    42924 Jul 19 15:16 pcretest
-rwxr-xr-x  2 root  wheel    10212 Jul 19 13:18 perl
-r-xr-xr-x  1 root  wheel    15060 Jul 19 13:18 perl-after-upgrade
lrwxr-xr-x  1 root  wheel       24 Jul 19 13:18 perl5 -> /usr/local/bin/perl5.8.8
-rwxr-xr-x  2 root  wheel    10212 Jul 19 13:18 perl5.8.8
-rwxr-xr-x  1 root  wheel    37307 Jul 19 13:16 perlbug
-rwxr-xr-x  1 root  wheel    17965 Jul 19 13:16 perlcc
-rwxr-xr-x  1 root  wheel      236 Jul 19 13:16 perldoc
-rwxr-xr-x  1 root  wheel    11949 Jul 19 13:16 perlivp
-r-xr-xr-x  1 root  wheel  1224136 Jul 19 12:58 perror
-rwxr-xr-x  1 root  wheel  2372649 Jul 19 14:59 php
-rwxr-xr-x  1 root  wheel  2386227 Jul 19 14:59 php-cgi
-rwxr-xr-x  1 root  wheel     2272 Jul 19 14:59 php-config
-rwxr-xr-x  1 root  wheel     4198 Jul 19 14:59 phpize
-rwxr-xr-x  1 root  wheel     5855 Jul 19 13:16 piconv
-r-xr-xr-x  1 root  wheel    86024 Jul 19 14:46 pkg-config
-rwxr-xr-x  1 root  wheel     4533 Jul 19 13:16 pl2pm
-rwxr-xr-x  1 root  wheel     2350 Jul 19 13:16 pod2html
-rwxr-xr-x  1 root  wheel    10267 Jul 19 13:16 pod2latex
-rwxr-xr-x  1 root  wheel    19557 Jul 19 13:16 pod2man
-rwxr-xr-x  1 root  wheel     7804 Jul 19 13:16 pod2text
-rwxr-xr-x  1 root  wheel     3349 Jul 19 13:16 pod2usage
-rwxr-xr-x  1 root  wheel     3732 Jul 19 13:16 podchecker
-rwxr-xr-x  1 root  wheel     2532 Jul 19 13:16 podselect
-rwxr-xr-x  1 root  wheel     9211 Jul 19 13:16 prove
-rwxr-xr-x  2 root  wheel    53021 Jul 19 13:16 psed
-rwxr-xr-x  2 root  wheel    36613 Jul 19 13:16 pstruct
-r-xr-xr-x  1 root  wheel     9392 Jul 19 14:21 recode-sr-latin
-r-xr-xr-x  1 root  wheel  1227676 Jul 19 12:58 replace
-r-xr-xr-x  1 root  wheel  1227852 Jul 19 12:58 resolve_stack_dump
-r-xr-xr-x  1 root  wheel  1223720 Jul 19 12:58 resolveip
-rwxr-xr-x  2 root  wheel    53021 Jul 19 13:16 s2p
-rwxr-xr-x  1 root  wheel    17378 Jul 19 13:16 splain
-r-xr-xr-x  1 root  wheel   184840 Jul 19 14:20 xgettext
-r-xr-xr-x  1 root  wheel     1723 Jul 19 14:52 xml2-config
-r-xr-xr-x  1 root  wheel    12428 Jul 19 14:52 xmlcatalog
-r-xr-xr-x  1 root  wheel    47964 Jul 19 14:52 xmllint
-r-xr-xr-x  1 root  wheel    21368 Jul 19 14:23 xmlwf
-rwxr-xr-x  1 root  wheel    51850 Jul 19 13:16 xsubpp

论坛徽章:
0
5 [报告]
发表于 2008-07-19 16:24 |只看该作者
原帖由 tecer 于 2008-7-19 15:49 发表


复述一下mysql整个安装过程



我是个初学者,安装过程都是照哈尔滨啤酒的视频教程做的。

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
6 [报告]
发表于 2008-07-19 22:29 |只看该作者
server已经安装完了。在rc.conf里面加上一句mysqld_enable='yes'就可以运行了。

你还需要什么呢?client端也是要安装才有的,就是打mysql出现的那个命令行。

论坛徽章:
0
7 [报告]
发表于 2008-07-19 23:10 |只看该作者

回复 #4 aeon 的帖子

???你的ls里面就有mysqld_safe为什么说没有???
另外,你所谓的command not found是运行什么命令而没有找到?
安装完了以后rehash了么?

[ 本帖最后由 dangk 于 2008-7-19 23:12 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2008-07-26 11:23 |只看该作者
我看你根本没进mysql,打命令就这提示

论坛徽章:
0
9 [报告]
发表于 2008-07-26 13:19 |只看该作者
unix有一点和windows不太一样,执行可执行程序都只是在系统设定的搜索路径中寻找,如果你安装的程序没在这个搜索路径里面,哪怕是你进入到程序安装的目录,直接运行程序也会提示找不到。

解决这个问题的方法:

1、使用绝对路径名

2、运行当前目录文件(没在搜索路径设置里面的),输入

  1. ./文件名
复制代码

论坛徽章:
0
10 [报告]
发表于 2008-07-27 16:51 |只看该作者
rehash
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP