Bug #25327 mysql can't find /usr/local/mysql on Solaris
Submitted: 29 Dec 2006 10:17 Modified: 1 Jan 2007 9:31
Reporter: Den Ivanov Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:5.0.27 OS:Solaris (Solaris)
Assigned to: Kent Boortz CPU Architecture:Any
Tags: install, solaris

[29 Dec 2006 10:17] Den Ivanov
Description:
After instaling solaris binary package, link '/usr/local/mysql' not exist.

How to repeat:
# pkgadd -d mysql-standard-5.0.27-solaris10-x86_64.pkg
<skip installation messages>
# mysql --default-character-set=cp1251
mysql: Character set 'cp1251' is not a compiled character set and is not specified in the '/usr/local/mysql/share/mysql/charsets/Index.xml' file
# ls -l /usr/local/mysql/
/usr/local/mysql/: No such file or directory
# ls /usr/local/
/usr/local/: No such file or directory

Suggested fix:
# mkdir /usr/local
# ln -s /opt/mysql/mysql/ /usr/local
# mysql --default-character-set=cp1251
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.27-standard-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>