Yes, looks you've got two versions installed. One is in your PATH
(where UNIX looks for items by default), and one is not.
To remove your old version, execute 'whereis mysql' from your command
prompt and you will get the full path to the mysql version it knows
about and is running when you invoke 'mysql'.
Assuming you've got everything out of there you need, remove the
directory path you got from above. ** THIS WILL MAKE IT ALL GO AWAY;
TAKE CARE. NOTE YOUR DATABASES MIGHT STILL BE IN THERE!
Then, you can add the latest version of mysql to your PATH so you don't
have to type the full path every time. If you're using the bash shell
(default in 10.4), edit a file called ".profile" (no quotes) in your
home directory. Create it if it does not exist. Put this line in it:
then open a new Terminal window and "mysql" should run OK.
Hope this helps.
> I was able to install the mysql 5.0 on my machine. But it
> Looks like there is a older version of mysql that was installed.
> When I run this command:
> mysql --version
> mysql Ver 14.7 Distrib 4.1.13a, for apple-darwin8.0
> Now I need to remove this version because when I
> Type the command mysql to run, I get the following error:
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/mysql/mysql.sock' (2)
> So now I type this command:
> And I'm able to connect to version 5.0.
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 5 to server version:
> Now I would like to remove this older version. Does anyone know how to do
> Without affecting verion 5.0? I am on a Mac OS 10.4.5 PowerPC.