Need Help with Linux Redhat Enterprise & Mysql

Posted on 2005-03-01
Medium Priority
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.


Question by:foreverdita
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
1 Comment

Accepted Solution

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
/etc/init.d/mysql-server start

after that you do mysqladmin thing .

surya .

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

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