Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Uninstall old version

Uninstall old version

2006-06-02       - By Dan Buettner

 Back
Reply:     1     2  

Hello -

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:
export PATH=${PATH}:/usr/local/mysql/bin
then open a new Terminal window and "mysql" should run OK.

Hope this helps.

Dan



nngau wrote:
>  
> 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:
> /usr/local/mysql/bin/mysql
>
> 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:
> 5.0.22-max
>
> Now I would like to remove this older version. Does anyone know how to do
> that
> Without affecting verion 5.0? I am on a Mac OS 10.4.5 PowerPC.
>
>
> Thanks,
>
> Ngim
>
>

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)