Solved

Installing MySQL on Red Hat Linux:

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now