"I keep getting 'command not found'. "

This error indicates that your shell cannot find the mysql file to execute (or that it is not executable for some reason... bad permissions). This can be caused by mysql (client) not being installed or by the client not being on a path that your user can see.

more below...

Victor Pendleton wrote:

Did you install MySQL on the other box? It sounds like you took a snapshot of the data but have not installed the executables yet.

James Sherwood wrote:

I am trying to transfer a database from one linux box to another, both using
redhat.


On one I performed a mysqldump and it worked fine.

On the other I created the database using a manager and tried the 'mysql
username password database < filename.sql' command

The problem is, I cannot seem to get the box to see the mysql.

I found it in init.d


The mysql in init.d is a control script that starts and stops the daemon. It is not the mysql client program and mysql <> mysqld.


vi (or whatever your text editor preference may be) the script and look at it. You can find your bin dir somewhere in this file. Once you find it you can see if "mysql" is in there.


I have root access

try "su -" instead of "su" if that is what you are using for root access.

I keep getting 'command not found'.

Any ideas would be greatly appreciated

James









hth,

--
Jason McKnight
Mgr. Information Services
The InSite Group,LLC




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to