Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2007, 05:01 AM
Authorized User
 
Join Date: Dec 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to annumol
Default couldn't connect to mysql thru socket-help me

I installed mysql 5.0.9 in fedora5.after installing when i gave command
mysqladmin version

an error getting like these.please help me


mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!


 
Old May 13th, 2008, 08:58 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Go to the command line and type:

Code:
ps ax | grep mysql
If mysql is running you should get summit like:

Code:
 ps ax | grep mysql
 2667 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe
 2704 ?        Sl    92:29 /usr/sbin/mysqld --basedir=/usr --datadir=/var/mysql --user=uname --pid-file=/var/lib/mysqld/mysqld.pid --skip-external-locking --port=6969 --socket=/var/lib/mysqld/mysqld.sock
Check the bit that says socket= is pointing to /var/lib/mysql/mysql.sock

Cheers,
Charlie

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to local MySQL server through socket Salieri MySQL 2 September 14th, 2005 03:06 PM
Can't connect to local MySQL server through socket Salieri BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 July 19th, 2005 02:18 AM
Trying to connect to Mysql tp194 Classic ASP Databases 4 November 11th, 2004 12:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.