Re: not able to connect to mysql



HP wrote:

> the whole error string is-
>
> Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (13)
>
>>Probably a permissions issue
>
> i am creating the file with root permission, changing the mode of file
> chmod 755
>
> do you think anything wrong here?


Yes mysql needs to own the file and have permission to write to it. Also
you need to check that mysql is actually running and that the path to the
sock file is correct in the first place.


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
.



Relevant Pages

  • Re: System user creation
    ... or Absolute FreeBSD. ... To remove mystery it is MySQL I am trying to get running. ... My concern is 'permission denied' which means there seems to be ... Yes I did install mysql my self. ...
    (freebsd-questions)
  • cant connect to mysql
    ... I got a report from sysinstall that MySQL was installed. ... Can't connect to local MySQL server through socket ... a password for root on MySQL yet. ...
    (freebsd-questions)
  • Re: cant get subversion/Apache2 to work properly
    ... Can't connect to local MySQL server through socket ... Checking for service MySQL: ... I do not have an existing subversion database, ...
    (alt.os.linux.suse)
  • Re: PhpMyAdmin multi user install troubles, help needed...
    ... > know matter how much I read and look around, ... > permission checks and a few changes, restarting the server, deleting ... > I used the create_tables.sql in the scripts folder chose to use cookie ... > permissions on the mysql db, made certain that the config.inc.php file ...
    (comp.lang.php)
  • Re: Anfaengerfrage: server probleme
    ... > Permission denied ... Noe, Du hast ein Permission-Problem, MySQL versucht da wohl nur etwas ... ganz normal installieren und danach eben passwortlosen Zugriff ... Next by Date: ...
    (de.comp.datenbanken.mysql)