WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline pan

  • Newbie
  • *
  • Posts: 27
How do you install LAMP/XAMPP? MySQL error 2002
« on: May 02, 2016, 01:30:25 PM »
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: 1036
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #1 on: May 02, 2016, 01:50:11 PM »
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, 06: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, 09: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, 09: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, 09: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, 07: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, 07:42:20 AM »
Bump.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: How do you install LAMP/XAMPP? MySQL error 2002
« Reply #8 on: May 04, 2016, 10: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, 11: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, 12:02:27 PM 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, 08: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