Security Basics mailing list archives
Re: mysql.sock
From: "Gabriel Orozco" <gabriel_orozco () mx sumida com>
Date: Thu, 11 Mar 2004 17:56:45 -0600
the directory that must be owned by mysql is /var/lib/mysql so please do chown -R mysql:mysql /var/lib/mysql and then do as I said. when hosts.frm is not there, then you didn't created the mysql database. so please do this to create the database: su - mysql mysql_install_db exit or (it's the same) su - mysql -c "mysql_install_db" and then there should be a mysql directory in /var/lib/mysql and then you can start mysql with /etc/rc.d/rc.mysqld start hope this helps ----- Original Message ----- From: "Lawrence, Michael" <MLawrence () soroc com> To: "'Jeff Leveille'" <JLeveille () SunJournal com>; <security-basics () securityfocus com> Cc: "Lawrence, Michael" <MLawrence () soroc com> Sent: Wednesday, March 10, 2004 3:57 PM Subject: RE: mysql.sock
I have tried starting mysql using safe_mysqld. It fails to start. I
checked
the error log in /var/lib/mysql and found that there was an error 2 (permission problem) and it was unable to locate hosts.frm in /var/lib/mysql/mysql/. Checked the permissions and ownership, and everything for mysql is owned by the user mysql and that user has the read/write access. I have even gone as far as setting the permissions to read/write/exicute through the whole tree to see if that solved the issue. (Box is not connected to a network currently, so security is a non issue
for
the moment.) This has not solved the issue. I am still getting the same
two
errors. I have even tried reinstalling the main databases using mysql_install_db. This has not worked. Any ideas? Mike -----Original Message----- From: Jeff Leveille [mailto:JLeveille () SunJournal com] Sent: Wednesday, March 10, 2004 4:49 PM To: security-basics () securityfocus com Cc: Lawrence, Michael Subject: RE: mysql.sockAm Di, den 09.03.2004 schrieb Lawrence, Michael um 21:31:I have a fresh install of Slackware 9.1. Installed Mysql with the
install
ofthe OS. When attempting to start mysqld, I receive an error stating itcannot connect to /var/lib/mysql/mysql.sock. When I searched for
mysql.sock,
itis not on the system. How do I go about creating mysql.sock? Mikethe mysqld _service_ is not running. try to start that service. i don't exactly know how this is done w/ slackware but probably like
this:
% /etc/rc.d/init.d/mysqld start for starting mysqld at boot add a symlink into /etc/init.d/rc.d/rcX.d,
that
points to the mysqld-startscript mentioned above % cd /etc/init.d/rc.d/rcX.d % ln -s ../init.d/mysqld SYYmysqld where X is the runlevel you want mysql to be started automatically and YYis anumber that indicates between wich other startscripts in the currentrunlevel-configuration the mysqld should be started, e.g. S99mysqld... hth.Slackware uses scripts in /etc/rc.d To start mysql run /etc/rc.d/rc.mysqld start If its set to start at boot it will have execute permissions, if not use: chmod +x /etc/rc.mysqld to enable it. Also check if the databases exist in /var/lib/mysql/mysql if not run /usr/bin/mysql_install_db then ensure mysql has ownership of all the files in /var/lib/mysql chown -R mysql /var/lib/mysql chgrp -R mysql /var/lib/mysql Start up mysql and you should be good to go. This e-mail is a private communication addressed to the intended recipient and no one else. The private and privileged nature of this e-mail is not waived by accidental delivery to the wrong person. If you are not the intended recipient, please delete this message immediately and do not keep any copies. Thank you. --------------------------------------------------------------------------
-
Ethical Hacking at the InfoSec Institute. Mention this ad and get $545 off any course! All of our class sizes are guaranteed to be 10 students or
less
to facilitate one-on-one interaction with one of our expert instructors. Attend a course taught by an expert instructor with years of in-the-field pen testing experience in our state of the art hacking lab. Master the
skills
of an Ethical Hacker to better assess the security of your organization. Visit us at: http://www.infosecinstitute.com/courses/ethical_hacking_training.html --------------------------------------------------------------------------
--
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.616 / Virus Database: 395 - Release Date: 08/03/2004 --------------------------------------------------------------------------- Ethical Hacking at the InfoSec Institute. Mention this ad and get $545 off any course! All of our class sizes are guaranteed to be 10 students or less to facilitate one-on-one interaction with one of our expert instructors. Attend a course taught by an expert instructor with years of in-the-field pen testing experience in our state of the art hacking lab. Master the skills of an Ethical Hacker to better assess the security of your organization. Visit us at: http://www.infosecinstitute.com/courses/ethical_hacking_training.html ----------------------------------------------------------------------------
Current thread:
- mysql.sock Lawrence, Michael (Mar 09)
- Re: mysql.sock jayesh (Mar 10)
- Re: mysql.sock daedalus (Mar 10)
- Re: mysql.sock Gabriel Orozco (Mar 10)
- Re: mysql.sock Eugene Patek (Mar 10)
- Re: mysql.sock Gene Cronk (Mar 11)
- Re: mysql.sock Mike (Mar 11)
- <Possible follow-ups>
- RE: mysql.sock Lawrence, Michael (Mar 11)
- RE: mysql.sock Jeff Leveille (Mar 11)
- RE: mysql.sock Lawrence, Michael (Mar 11)
- Re: mysql.sock Gabriel Orozco (Mar 12)
- Re: mysql.sock edict (Mar 15)