Find the answer to your Linux question:
Results 1 to 2 of 2
hi friends, Im using centos. i have install rpm for mysql MySQL-client-5.1.41-0.glibc23.i386.rpm MySQL-server-5.1.41-0.glibc23.i386.rpm MySQL-server-5.1.41-0.glibc23.i386.rpm MySQL-server-5.1.41-0.glibc23.i386.rpm but when i have enter service mysqld start it shows mysqld: unrecognized service and when ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    8

    installing mysql on linux

    hi friends,

    Im using centos.

    i have install rpm for mysql
    MySQL-client-5.1.41-0.glibc23.i386.rpm
    MySQL-server-5.1.41-0.glibc23.i386.rpm
    MySQL-server-5.1.41-0.glibc23.i386.rpm
    MySQL-server-5.1.41-0.glibc23.i386.rpm

    but when i have enter
    service mysqld start
    it shows
    mysqld: unrecognized service

    and when I type
    mysql
    it shows
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

    whats the problem
    can anyone knows ????????? plz

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    mysql is the command to connect to a database and run commands / queries. I think (using my memory, and while I have a photographic memory, I ran out of film.) that the command to manualy start it is mysqld.

    the easiest way I can think of the check the service name for mysql is to look in /etc/init.d for somethign that looks right. You may have to run

    chkconfig --add $mysqlname
    before the service scripts work.

    One question, Why didn't you use yum?

    I understand why someone would install from source instead of using yum, but you used an RPM, which is the same as yum, just not made specificaly for CentOS.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...