The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
MySQL article - Sun and MySQL: How It Stacks Up for Developers iBot UNIX and Linux RSS News 0 02-28-2008 07:20 PM
MySQL conflicts with mysql-3.23.58-16.RHEL3.1 johnveslin Linux 2 07-17-2007 03:49 AM
Mysql kisoun UNIX for Advanced & Expert Users 3 09-12-2005 03:54 AM
MySQL problem >> missing mysql.sock _hp_ UNIX for Advanced & Expert Users 8 11-03-2002 10:44 AM
mysql php macdonto Security 1 09-19-2001 12:29 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2006
Registered User
 

Join Date: Dec 2005
Posts: 35
mysql would not start: missing mysql.sock

I recently installed mysql-standard-5.0.21-solaris9-sparc-64bit.pkg on a Solaris 9 machine (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250). The package installation went very smooth, however, starting mysql is a different story. I get the message below everytime I try to start mysql:

# mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

According to pkginfo -l, the installation was successful:

# uname -a
SunOS <hostname> 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250
# pkginfo -l mysql
PKGINST: mysql
NAME: MySQL Community Edition - Standard (GPL)
CATEGORY: application
ARCH: sun4u
VERSION: 5.0.21
BASEDIR: /opt/mysql
VENDOR: MySQL AB
PSTAMP: MySQL AB Build Engineers
INSTDATE: May 25 2006 10:40
EMAIL: build@mysql.com
STATUS: completely installed
FILES: 1668 installed pathnames
54 directories
99 executables
163084 blocks used (approx)

I also did a find on mysql.sock, and I came up with nothing. Any ideas? I would really appreciate any help or advise
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-25-2006
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,420
That means the server has not been started. In the first command you posted "mysql", you seems to be starting the mysql client, not the server. If the server is not yet started local client connection will fail.

Find out if the package has a mysql server init script and try starting it first.
Reply With Quote
  #3 (permalink)  
Old 05-26-2006
Registered User
 

Join Date: Dec 2005
Posts: 35
thank you for the replya

this was a simple case of rtfm. you are right. i was suppose to start mysql.server and copy the appropriate .cnf file to /etc/my.cnf.

thanx.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0