Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    mysql connection problem

    I installed mysql 5.0.9 in fedora5.after installing when i gave command
    mysqladmin version

    an error getting like these.

    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

  2. #2
    Linux Newbie Tutku's Avatar
    Join Date
    Jul 2007
    Izmir / Turkey
    After installation you've to start Mysqld service with this command:
    # service mysqld start
    and then mysqladmin can connect to the localhost.

  3. #3
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Canada, Prince Edward Island

    MySQL problem

    I had a problem just like this with Fedora/MySQL. It turned out that the permissions on the folder /var/lib/mysql were to restrictive and would not let MySQL creat a socket/file in this folder.
    Try changing the permissions for the folder(/var/lib/mysql) to the following
    1. Owner can view modify content
    2. Group can view content
    3, Other can view content

  4. $spacer_open

Posting Permissions

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