Solved

Installing MySQL on Red Hat Linux:

Posted on 2006-06-20
5
722 Views
Last Modified: 2010-08-05
Hi,

I'm installing MySQL 5.0 on Red Hat Linux Enterpise ES, I installed the client, server, and shared RPMs from mysql.org,
but when I try to run "mysqld" to start the server, I get the following error:

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

but I look into /var/lib/mysql/ and found out that mysql.sock is not even there.

Please help!

thanks,

Jack

0
Comment
Question by:huabin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 7

Assisted Solution

by:db2inst1
db2inst1 earned 500 total points
ID: 16947733
Try

./bin/mysqld_safe &

or

service mysql start.

Was your installation successfull?
0
 

Author Comment

by:huabin
ID: 16948574
Hi,

I have tried two of them, but none of them work.


"./bin/mysqld_safe &": it dispay the message "Starting mysqld daemon with database from /var/lib/mysql, and then it just stop here.


"service mysql start": it disply the message "Starting MySQL......[Failed"

Jack
0
 
LVL 7

Assisted Solution

by:db2inst1
db2inst1 earned 500 total points
ID: 16948579
see if you can find any useful information from the errorlog its ususally located /var/lib/mysql/<hostname>.err
0
 

Author Comment

by:huabin
ID: 16948589
Hi,

I get the a lot of the error message said
"Unable to lock ./ibdata1, error 11" , "Check that you don not already have another mysqld process"
in the <hostname>.err file.

But I sure MySQL is not running, why there maybe another mysqld process running?

Jack

0
 
LVL 7

Accepted Solution

by:
db2inst1 earned 500 total points
ID: 16948610
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question