Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I'm using fedora 13(x86_64). i got an error message while starting the mysql database software through the kernel..... Code: [pradeep@localhost ~]$ mysql ERROR 2002 (HY000): Can't connect to local ...
  1. #1
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71

    Mysql not starting....

    Hi,
    I'm using fedora 13(x86_64).
    i got an error message while starting the mysql database software through the kernel.....
    Code:
    [pradeep@localhost ~]$ mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    [pradeep@localhost ~]$
    this is the first time i'm using the mysql in linux environment....
    do i have to configure anything before using it for the first time ?!

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Posts
    1
    Hi,

    Looks like mysql is not installed on your host, try this out

    rpm -qa |grep -i mysql

    if you don't find any related rpm's then you may need to install the rpm for the same.


  3. #3
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71
    First of all....Thank u very much sathish...
    actually, the problem is mysql, is installed in my system(which came along with my distro),
    but,i didnt know how to start it...
    now the problem is over....
    i used the following command to start it(after logging in as root user)....
    Code:
    ./mysqld start
    then,
    i used the command "mysql",
    now its working fine...

  4. #4
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71
    sorry sorry....
    actually, logged in as root....
    Code:
    mysql_install_db
    after that type,
    Code:
    mysqld_safe
    then type,
    Code:
    mysql
    thats it.....
    mysql window appeared,and works just fine....

  5. #5
    Linux Newbie
    Join Date
    Apr 2010
    Location
    Novosibirsk, Russia
    Posts
    136
    Code:
    sudo service mysqld_safe start
    or
    Code:
    sudo /etc/init.d/mysqld_safe start
    of course you have to start mysql server before trying to connect

  6. #6
    Just Joined! pradeeprajkumar's Avatar
    Join Date
    Jun 2010
    Location
    India
    Posts
    71
    Code:
    mysql -u user_name -p db_name
    Code:
    Enter Password:
    This way it starts well.!
    db_name is optional.

Posting Permissions

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