Find the answer to your Linux question:
Results 1 to 2 of 2
I had a problem with mysql.sock and this is the final answer i thought would be correct i have tried: - /etc/init.d/mysqld restart - /etc/init.d/mysqld start - mysqld_safe --user=mysql & ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4

    Mysql 5.1.37 community on Linux

    I had a problem with mysql.sock and this is the final answer i thought would be correct

    i have tried:
    - /etc/init.d/mysqld restart
    - /etc/init.d/mysqld start
    - mysqld_safe --user=mysql &

    and none of those worked...

    i guess this is because, the server crashed in the first place.

    So, the solution i had, was to loacte the file
    /var/log/mysqld.log

    like this:
    tail -f /var/log/mysqld.log
    or
    cat /var/log/mysqld.log

    figure out the error message, solve that error message
    or try to find a work-around for that error on google.

    Once that error message is "solved", then you can safely restart mysqld
    [no need to reboot], and once the daemon is up and running,
    your magical "mysql.sock" file will appear as it did before. =)

    But the thing is i am unable to find the file mysql.log

    i even tried uninstalling using the "rpm -e filename.rpm" it says that it is not installed and when i try to install using "rpm -ivh filename.rpm" it says that the package is already installed

    i am in a fix..

    So can anybody please help me in fixing or uninstalling the mysql.version is 5.1.37 community version

    thanks in advance,

    eagerly waiting for a reply...

    Ananth

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    Quote Originally Posted by ananthcharan View Post
    I had a problem with mysql.sock and this is the final answer i thought would be correct

    i have tried:
    - /etc/init.d/mysqld restart
    - /etc/init.d/mysqld start
    Those are for Ubuntu or Debian. In Fedora, to make the MySQL server start at boot use this command:
    Code:
    /sbin/chkconfig mysqld on
    To start the MySQL daemon use this command
    Code:
    /sbin/service mysqld start
    You need to run these commands with root privileges, so use su first.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Posting Permissions

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