hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : MySQL said: Documentation
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

MySQL said: Documentation

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-26-2004, 03:11 AM
Criminal#58369 Criminal#58369 is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 928

MySQL said: Documentation


Just installed fedora core 3, started apache, and mysql, uploaded phpmyadmin, and i get this,
Quote:
MySQL said: Documentation
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
How do i fix this problem?...Rebooting?... How to fix it?

Reply With Quote


Sponsored Links
  #2  
Old 11-26-2004, 03:30 AM
Unknown_User Unknown_User is offline
Web Hosting Master
 
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
Hi, I read that you need to do:

chown -R mysql /var/lib/mysql/*
chgrp daemon /var/lib/mysql/*

Give it a try see if it works.

dislexiK

__________________
"You don’t learn to hack, you hack to learn"

Reply With Quote
  #3  
Old 11-26-2004, 03:37 AM
Unknown_User Unknown_User is offline
Web Hosting Master
 
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
Also, check to see if you have: mysql.sock in /var/lib/mysql or somewhere else, IIRC if it is in a different place you need to create a symlink to it or change the properties in MySQL config or something alike - don't take my word for it, I have not even installed MySQL, just going off what I have read.

DislexiK

__________________
"You don’t learn to hack, you hack to learn"

Reply With Quote
Sponsored Links
  #4  
Old 11-26-2004, 12:02 PM
Criminal#58369 Criminal#58369 is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 928
Thumbs up

Edited:

I just logged in as root, checked, there is a mysql.sock in /var/lib/mysql/mysql.sock

What could be the problem, mysql starts ok...? Maybe a bug in fedora core 3? If so i guess id have to report that to them?... so they can make it better


Last edited by Criminal#58369; 11-26-2004 at 12:13 PM.
Reply With Quote
  #5  
Old 11-26-2004, 12:26 PM
Criminal#58369 Criminal#58369 is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 928
In my.cnf in /etc/ i have the following in the file:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


That looks right to me...
Is there anything i should add, or files to check?

Reply With Quote
  #6  
Old 11-26-2004, 12:34 PM
Unknown_User Unknown_User is offline
Web Hosting Master
 
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
Have you done:

chown -R mysql /var/lib/mysql/*
chgrp daemon /var/lib/mysql/*

DislexiK

__________________
"You don’t learn to hack, you hack to learn"

Reply With Quote
  #7  
Old 11-26-2004, 12:52 PM
Criminal#58369 Criminal#58369 is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 928
Yes the funny thing is though, the mysql.sock does not have anything in it...?.. I dont get it..

Reply With Quote
  #8  
Old 11-26-2004, 03:30 PM
Criminal#58369 Criminal#58369 is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 928
Heres what i get when i check it:


[root@localhost ~]# rpm -qa | grep mysql
mod_auth_mysql-20030510-5
mysql-devel-3.23.58-13
freeradius-mysql-1.0.1-1
libdbi-dbd-mysql-0.6.5-9
gda-mysql-1.0.4-3
mysql-3.23.58-13
mysql-server-3.23.58-13
php-mysql-4.3.9-3
mysql-bench-3.23.58-13
[root@localhost ~]#

Maybe i should install an up-to-date version of mysql? like version 4?

Reply With Quote
  #9  
Old 11-26-2004, 04:54 PM
Unknown_User Unknown_User is offline
Web Hosting Master
 
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
ITs always a good idea to update your services, and it is even better to compile them

DislexiK

__________________
"You don’t learn to hack, you hack to learn"

Reply With Quote
  #10  
Old 11-26-2004, 05:54 PM
LP-Trel LP-Trel is offline
Web Hosting Master
 
Join Date: Jul 2003
Location: Nothing but, net
Posts: 2,062
You can fix it by not running a developer preview OS on a server.

See http://www.centos.org/ for a better server operating system.

Reply With Quote
  #11  
Old 11-26-2004, 06:42 PM
Criminal#58369 Criminal#58369 is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 928
But i like fedora lol

Reply With Quote
  #12  
Old 11-27-2004, 03:38 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
Get a decent server OS. Like FreeBSD or RHE. Gentoo is good too, but its really optimized for the desktop.

Updating MySQL would be a step in the right direction.

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
  #13  
Old 11-27-2004, 05:54 AM
EastHill EastHill is offline
Newbie
 
Join Date: Nov 2004
Posts: 5
yes fedora is good

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43
Communications Software Firm 4PSA Launches Developer Resource Website Web Hosting News 2011-07-06 20:38:56


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?