?
Solved

Installing MySQL on Red Hat Linux:

Posted on 2006-06-20
5
Medium Priority
?
725 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 1000 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 1000 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 1000 total points
ID: 16948610
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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 …
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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