?
Solved

I'm trying to install mysql in red hat 6.0

Posted on 2003-04-01
4
Medium Priority
?
187 Views
Last Modified: 2013-12-16
I have the following problem :
I have to execute /usr/local/mysql/scripts/mysql_install_db
but mysql_install is a Bourne shell script
I'am superuser and I have /bin/bash
How can I change the /bin/bash to /bin/sh in order to execute the mysql_install script?
0
Comment
Question by:vage78
[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
4 Comments
 
LVL 3

Accepted Solution

by:
naccad earned 100 total points
ID: 8246164
the 1st line of the script sets what shell to use,
e.g.

#!/bin/sh

means that this is a /bin/sh script
just change it to whatever you want there.

tc
-nick
0
 

Author Comment

by:vage78
ID: 8247272
I have not understand
I know it is a bourne script.
I have default shell as superuser bash shell.
When I'm trying to write /bin/sh is not executed what can I do?
0
 

Expert Comment

by:mmuser
ID: 8247986
type this a super user:

ln -s /bin/bash /bin/sh

Thats it! if it still doesn't work then you script is bad, show script in forum...
0
 

Expert Comment

by:CleanupPing
ID: 9076573
vage78:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

771 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