?
Solved

Need Help with Linux Redhat Enterprise & Mysql

Posted on 2005-03-01
1
Medium Priority
?
313 Views
Last Modified: 2013-12-06
OK, I just got a server with Linux Red Hat Enterprise installed.  

I want to install mysql, but it looks like it's already on the machine, under the usr/bin folder.

However, when I try to run mysql or mysqladmin, I receive the following error:

2002 - cannot connect to local mysql server through socket /var/lib/mysql/mysql.sock
bash no such file.

I don't know if this means that mysql is not installed, as I am new to this operating system, or what I can do to move on.  PLEASE, PLEASE help.

Thanks!



0
Comment
Question by:foreverdita
1 Comment
 
LVL 7

Accepted Solution

by:
surya_prabhakar earned 2000 total points
ID: 13434078
First you need to check what rpms are installed related to mysql .
run the below command as root .
# rpm -qa | grep mysql  

this should give you all mysql related packages
you shold be having mysql-server installed .If not please install it from the CD
# rpm -ivh mysql-server-xxx.rpm
if it asks any dependancies then find them from the CD .
once that is installed you have to start the server
#service mysql-server start
or
/etc/init.d/mysql-server start

after that you do mysqladmin thing .

surya .
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

Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

621 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