LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Symbolic Link from w/ Mysql (https://www.linuxquestions.org/questions/linux-general-1/symbolic-link-from-w-mysql-244198/)

Transition 10-18-2004 11:13 AM

Symbolic Link from w/ Mysql
 
Hello everyone,

Trying to accomplish a simple task in Slackware10 by creating a symbolic link to mysql. Here's the command i'm using..


root@somehost:/# ln -s /usr/local/mysql/bin/mysql mysql

The command executes successfully, but if i then try to type mysql nothing happens, no error or any execution.

If i type in ./mysql i receive the following message, which is what i want.

root@somehost:/# ./mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)


How can i make it so i can just type mysql from any directory and it executes mysql?

Thanks for any help,

- RJ

trickykid 10-18-2004 02:23 PM

Create an alias, probably work better or just simply add the mysql commands directory or path to your own path.


All times are GMT -5. The time now is 04:02 AM.