Solved

Installing MySQL on Red Hat Linux:

Posted on 2006-06-20
5
720 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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