Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old November 25th, 2007, 07:58 PM
Registered User
Join Date: Nov 2007
Location: Austin, TX, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MySQL Trouble

I just purchased the [u]Beginning MySQL</u> book. As per usual with these type of things, I'm struggling to get through the installation portion of the book due to the normal unforeseen circumstance that prevents me from getting past chapter 1.

I have downloaded both the client and server versions of MySQL, copied them to my /tmp directory (in Linux), and even during installation it gave me a message stating that it could not run the server program.

When I attempt to run it, this is what I get:
[root@localhost tmp]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
In the "Testing your Linux Installation" portion of the chapter that you are directed to after installation, you are asked to run this command.
/usr/bin/mysqladmin version
When I do this I get pretty much the same response:
[root@localhost tmp]# /usr/bin/mysqladmin version
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
Any help would be greatly appreciated. I'm am still pretty new to Linux which doesn't help, but as for now it's all I've got to work with.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble connecting MySQL to PHP nofences84 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 June 14th, 2007 11:21 PM
Trouble connecting to MySQL server (CH3) mrouse BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 October 20th, 2005 01:44 PM
Please i have had a Trouble hurted Wrox Book Feedback 1 June 28th, 2004 02:18 AM
Trouble with mysql statement cbright JSP Basics 1 October 2nd, 2003 06:22 AM
trouble databass Classic ASP Databases 2 August 16th, 2003 10:27 AM

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