Fedora Linux Support Community & Resources Center
  #1  
Old 30th October 2006, 10:24 PM
nicc9 Offline
Registered User
 
Join Date: Oct 2006
Posts: 37
can't run mysql

hi, i installed apache, php, phpmyadmin and mysql on F6.

the server works great, as well as php.

when i go to phpmy admin it says:

Code:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
when - from the terminal - i try
Code:
mysql start
i get the following error:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
anybody could help me with this?

i searched on the net but couldn't find anything.

I just switched to Linux and am trying to get basic stuff working so that I can work, but so far even things that were a 2-min task as far as installation have been a nightmare.

any idea appreciated.

thanks!
Reply With Quote
  #2  
Old 31st October 2006, 03:14 AM
wdingus Offline
Registered User
 
Join Date: Aug 2005
Location: Kingsport, TN
Posts: 117
Common questions, did you search the forums here?

"mysql" is the _client_ not the server. Therefore you don't _start_ it, you use it to connect to the server once it's started.

Type "service mysqld start" to start the server. To set it to startup on boot from now on do so via pointy-clicky utility or "chkconfig mysqld on".

After the server is running, try "mysql" to connect to it. Once a password is set do "mysql -p" and enter the password to get the client to successfully connect to it.

For PHP, make sure package php-mysql is installed for it to be able to communicate with mysql server(s).
Reply With Quote
  #3  
Old 31st October 2006, 10:27 PM
nicc9 Offline
Registered User
 
Join Date: Oct 2006
Posts: 37
hi wdingus.

thanks for replying.

I tried to start the service from system-config-services, but it doesn't start.

the error is:

Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option

I search a lot of forums and have done basically everything, but nothing has worked for me.

when I type "hostname" I get:
localhost.localdomain

any idea what else I could do?

thanks a 1000!

nicc9
Reply With Quote
  #4  
Old 1st November 2006, 08:58 PM
xaeth Offline
Registered User
 
Join Date: Nov 2006
Posts: 16
based on that your /etc/hosts file should have an entry that looks like this:

127.0.0.1 localhost.localdomain localhost
Reply With Quote
  #5  
Old 1st November 2006, 10:22 PM
nicc9 Offline
Registered User
 
Join Date: Oct 2006
Posts: 37
ha!

actually I had ::1 localhost.localdomain localhost, I replaced with what you wrote and now it works (well, it's giving me an access denied error, but that I can figure out)!

thanks, thanks, thanks!
Reply With Quote
Reply

Tags
mysql, run

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC3 and mysql administrator and mysql query browser elmargaro Using Fedora 0 7th November 2005 06:01 PM
How to install mysql MySQL-server-4.0.26-0 FC2 or Upgrade 3.23.58-16.FC2.1 from to 4 niloshima EOL (End Of Life) Versions 1 28th October 2005 06:25 PM
MySQL: Can't open privilege tables: Incorrect information in file: './mysql/host.frm' benjamin.choi Servers & Networking 1 25th June 2005 04:19 PM
Install mail server from Postfix/CyrusSASL2/PAM-MySQL/MySQL/Dovecot/Amavisd/Clamav chengcsw Guides & Solutions (No Questions) 7 26th April 2005 08:38 PM


Current GMT-time: 03:04 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat