红联Linux门户
Linux帮助

架设LAMP时,mysql服务端客户端同时需要安装吗?

发布时间:2010-11-11 16:12:35来源:红联作者:昊昊荡荡
[i=s] 本帖最后由 昊昊荡荡 于 2010-11-11 16:15 编辑 [/i]

如题。
在google上搜索时,发现很多教程都提到了要同时安装mysql的服务端和客户端。
不知是不是真的需要这样做?

补充:
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql i686 5.1.52-1.fc13 updates 899 k
mysql-server i686 5.1.52-1.fc13 updates 8.3 M
Installing for dependencies:
perl-DBD-MySQL i686 4.017-1.fc13 updates 137 k
perl-DBI i686 1.609-4.fc13 cdrom 707 k
Updating for dependencies:
mysql-libs i686 5.1.52-1.fc13 updates 1.2 M

Transaction Summary
================================================================================
Install 4 Package(s)
Upgrade 1 Package(s)

Total download size: 11 M
Is this ok [y/N]:

以上红色部分是个什么文件?谢谢!
文章评论

共有 2 条评论

  1. alick 于 2010-11-12 16:15:57发表:

    如果你是在主机上应该不用加-h选项吧

  2. 昊昊荡荡 于 2010-11-11 16:40:09发表:

    [root@fedora13 ~]# chkconfig --list mysqld
    mysqld 0:off 1:off 2:off 3:on 4:off 5:on 6:off
    [root@fedora13 ~]# service mysqld status
    mysqld (pid 1495) is running...
    我在fedora13主机上成功安装了mysql服务后(如上),在运行“mysqladmin -h 192.168.1.88 -u root password wuhaoshu”时,有如下提示:
    ^Cmysqladmin: connect to server at '192.168.1.88' failed
    error: 'Can't connect to MySQL server on '192.168.1.88' (4)'
    Check that mysqld is running on 192.168.1.88 and that the port is 3306.
    You can check this by doing 'telnet 192.168.1.88 3306'
    请问我该怎么办呢?
    192.168.1.88主机的主机名为fedora13,把ip地址换成主机名也是同样的错误提示。