WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How do you install LAMP/XAMPP? MySQL error 2002  (Read 3373 times)

Offline pan

  • Newbie
  • *
  • Posts: 27
How do you install LAMP/XAMPP? MySQL error 2002
« on: May 02, 2016, 10:30:25 AM »
Hi, when I run mysql, I get ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2 "No such file or directory).

Offline andyj

  • Hero Member
  • *****
  • Posts: 1021
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #1 on: May 02, 2016, 10:50:11 AM »
What versions are you using / trying to use?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #2 on: May 02, 2016, 03:28:33 PM »
Start your server.

Offline pan

  • Newbie
  • *
  • Posts: 27
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #3 on: May 02, 2016, 06:16:30 PM »
What versions are you using / trying to use?
What versions of what? I'm using Micro Core 3.16.6.

Offline pan

  • Newbie
  • *
  • Posts: 27
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #4 on: May 02, 2016, 06:27:22 PM »
Start your server.
How? Httpd's not in /etc/init.d and apachectl doesn't find /usr/local/etc/httpd/httpd.conf.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #5 on: May 02, 2016, 06:33:13 PM »
Start the mysqld server.  The socket does not exist until the server is up.
Read  the info files and config files.

Offline pan

  • Newbie
  • *
  • Posts: 27
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #6 on: May 03, 2016, 04:20:25 AM »
Start the mysqld server.  The socket does not exist until the server is up.
Read  the info files and config files.
Where are they? I went to /usr/local/mysql/bin and did ./mysqld but it fails to create a socket for IPv6 ':::': errno: 97 but it does create one on IP 0.0.0.0. Then it fails to start the server and shuts down.

Offline pan

  • Newbie
  • *
  • Posts: 27
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #7 on: May 04, 2016, 04:42:20 AM »
Bump.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #8 on: May 04, 2016, 07:28:48 AM »
Hi pan
From the info file:
Quote
Start server with command
'sudo /usr/local/mysql/bin/mysqld_safe &'
found here:
http://tinycorelinux.net/6.x/x86/tcz/mariadb.tcz.info

For IP6 support you probably need to install  ipv6-3.16.6-tinycore.tcz

Offline pan

  • Newbie
  • *
  • Posts: 27
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #9 on: May 04, 2016, 08:58:33 AM »
Hi pan
From the info file:
Quote
Start server with command
'sudo /usr/local/mysql/bin/mysqld_safe &'
found here:
http://tinycorelinux.net/6.x/x86/tcz/mariadb.tcz.info

For IP6 support you probably need to install  ipv6-3.16.6-tinycore.tcz
Thanks but it gets stuck on starting the daemon when I include the ampersand. Is that supposed to happen? Also what's the difference between using Apache 2 & 2.4 (when I run it with the command in the documentation URL for the package, it can't open conf.modules.d)?
« Last Edit: May 04, 2016, 09:02:27 AM by pan »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #10 on: May 04, 2016, 05:21:07 PM »
It is not stuck.  It is detached.  Just hit return to re-display the prompt.
Tiny core is not an install and run distro.  It is a toolkit for experienced users.
I you don't know basic shell programming and how to read config files, you may be happier with Ubuntu
or some other load and run distro.
Here are some reading suggestions to get you on track:
http://rute.2038bug.com/index.html.gz
http://tinycorelinux.net/book.html