请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

在centos 6.8 的腾讯云环境下 ,安装mysql时出现问题

在执行rpm -qal grep mysql-server时,出现

/bin/egrep

/bin/fgrep

/bin/grep

/usr/share/doc/grep-2.20

/usr/share/doc/grep-2.20/ABOUT-NLS

/usr/share/doc/grep-2.20/AUTHORS

/usr/share/doc/grep-2.20/COPYING

/usr/share/doc/grep-2.20/ChangeLog

/usr/share/doc/grep-2.20/NEWS

/usr/share/doc/grep-2.20/README

/usr/share/doc/grep-2.20/THANKS

/usr/share/doc/grep-2.20/TODO

/usr/share/info/grep.info.gz

/usr/share/locale/af/LC_MESSAGES/grep.mo

/usr/share/locale/be/LC_MESSAGES/grep.mo

/usr/share/locale/bg/LC_MESSAGES/grep.mo

/usr/share/locale/ca/LC_MESSAGES/grep.mo

/usr/share/locale/cs/LC_MESSAGES/grep.mo

/usr/share/locale/da/LC_MESSAGES/grep.mo

/usr/share/locale/de/LC_MESSAGES/grep.mo

/usr/share/locale/el/LC_MESSAGES/grep.mo

/usr/share/locale/eo/LC_MESSAGES/grep.mo

/usr/share/locale/es/LC_MESSAGES/grep.mo

/usr/share/locale/et/LC_MESSAGES/grep.mo

/usr/share/locale/eu/LC_MESSAGES/grep.mo

/usr/share/locale/fi/LC_MESSAGES/grep.mo

/usr/share/locale/fr/LC_MESSAGES/grep.mo

/usr/share/locale/ga/LC_MESSAGES/grep.mo

/usr/share/locale/gl/LC_MESSAGES/grep.mo

/usr/share/locale/he/LC_MESSAGES/grep.mo

/usr/share/locale/hr/LC_MESSAGES/grep.mo

/usr/share/locale/hu/LC_MESSAGES/grep.mo

/usr/share/locale/id/LC_MESSAGES/grep.mo

/usr/share/locale/it/LC_MESSAGES/grep.mo

/usr/share/locale/ja/LC_MESSAGES/grep.mo

/usr/share/locale/ko/LC_MESSAGES/grep.mo

/usr/share/locale/ky/LC_MESSAGES/grep.mo

/usr/share/locale/lt/LC_MESSAGES/grep.mo

/usr/share/locale/nb/LC_MESSAGES/grep.mo

/usr/share/locale/nl/LC_MESSAGES/grep.mo

/usr/share/locale/pa/LC_MESSAGES/grep.mo

/usr/share/locale/pl/LC_MESSAGES/grep.mo

/usr/share/locale/pt/LC_MESSAGES/grep.mo

/usr/share/locale/pt_BR/LC_MESSAGES/grep.mo

/usr/share/locale/ro/LC_MESSAGES/grep.mo

/usr/share/locale/ru/LC_MESSAGES/grep.mo

/usr/share/locale/sk/LC_MESSAGES/grep.mo

/usr/share/locale/sl/LC_MESSAGES/grep.mo

/usr/share/locale/sr/LC_MESSAGES/grep.mo

/usr/share/locale/sv/LC_MESSAGES/grep.mo

/usr/share/locale/th/LC_MESSAGES/grep.mo

/usr/share/locale/tr/LC_MESSAGES/grep.mo

/usr/share/locale/uk/LC_MESSAGES/grep.mo

/usr/share/locale/vi/LC_MESSAGES/grep.mo

[root@VM_0_11_centos /]#

/usr/share/locale/zh_TW/LC_MESSAGES/grep.mo

/usr/share/man/man1/egrep.1.gz

/usr/share/man/man1/fgrep.1.gz

/usr/share/man/man1/grep.1.gz





然后执行

chkconfig mysqld on

显示

error reading information on service mysqld: No such file or directory

在执行

mysql - V

也没有版本提示,但是执行rpm -qa | grep mysql

mysql-libs-5.1.73-7.el6.x86_64

貌似这是安装包版本号吧,gaaly老师我这是有自带安装包妹安装的意思吗?

正在回答

2回答

你好同学,这样子就说明mysql的service没有安装好,可以直接安装yum试试看,安装mysql

0 回复 有任何疑惑可以回复我~
polo哦 2018-03-12 22:38:26

serveice mysqld status查看下状态,serveice mysqld restart,然后没有反应的话你试试mysql -uroot -p看看有没有要求你输入密码呢,如果有就证明安装成功

0 回复 有任何疑惑可以回复我~
  • 提问者 慕斯0312332 #1
    是在/usr/share/mysql下用这些命令吗
    回复 有任何疑惑可以回复我~ 2018-03-13 10:48:13
  • 提问者 慕斯0312332 #2
    哦哦,在centos 6.8 最上面运行了您说得
    serveice mysqld status查看下状态,serveice mysqld restart
    然后都显示的是
    mysqld: unrecognized service
    用
    yum list *mysql*
    可以看到
    mysql-libs.x86_64                                                                                         5.1.73-7.el6                                                                      @anaconda-CentOS-201605220104.x86_64/6.8
    回复 有任何疑惑可以回复我~ 2018-03-13 10:55:45
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信