Find the answer to your Linux question:
Results 1 to 7 of 7
hey so i have a server running and I want to be able to make some mysql databases. It is a fedora core 3 box. I included the mysql package ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    70

    mysql


    hey

    so i have a server running and I want to be able to make some mysql databases. It is a fedora core 3 box. I included the mysql package when I installed and all of the mysql directories and executables seem to be on the machine.

    Is there something particular I need to do (ie. open ports specific to mysql?). When I ssh into the server and run mysql in the terminal an error comes up saying:

    error 2002: cant connect to mysql through socket "/var/lib/mysql/mysql.sock" (2)

    Anyone ever have similar problems or know what it is I need to do?

    thanks!

  2. #2
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Have you started it? try "/etc/init.d/mysqld start"

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    70
    o dear.

    i attempted to start the daemon with /etc/init.d/mysqld start but it says the file aint found.

    Is it possible it resides somewhere different? Apparently I do not have it setup. blast. I the /usr/bin directory though the mysql mysql_installdb and other programs exist.

    where would the mysqld be? It does not appear in the services portion of my server config either.

    any suggestions?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Use slocate to find it since it could be somewhere else.
    Code:
    updatedb;
    locate mysql

  6. #5
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Quote Originally Posted by judhkqkhsd
    i attempted to start the daemon with /etc/init.d/mysqld start but it says the file aint found.
    Did you try to start it as root or su? If not, you'll have to be root to start it.
    Another thought, I believe that in Fedora, mysql start script is
    /etc/init.d/mysql
    and NOT /etc/init.d/mysqld

  7. #6
    Just Joined!
    Join Date
    Jun 2005
    Posts
    70
    ok.

    thanks for the help.

    I was logged in as root when I ran /etc/init.d/mysql and mysqld. Neither are there. I did a search for mysqld and it does not appear to be anywhere on my system. its strange because the mysql executable is on the system it just wont connect properly. strange.

    i really dont know what is going wrong. ill have to check the mysql help pages. if anyone has any other hints though it would be greatly appreciated.

  8. #7
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Have you tried using yum to install it?
    Code:
    yum install mysql
    or
    Code:
    yum install mysql-server

Posting Permissions

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