Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: pan on May 02, 2016, 01:30:25 PM

Title: How do you install LAMP/XAMPP? MySQL error 2002
Post by: pan 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).
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: andyj on May 02, 2016, 01:50:11 PM
What versions are you using / trying to use?
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: gerald_clark on May 02, 2016, 06:28:33 PM
Start your server.
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: pan 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.
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: pan 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.
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: gerald_clark 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.
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: pan 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.
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: pan on May 04, 2016, 07:42:20 AM
Bump.
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: Rich 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
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: pan 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)?
Title: Re: How do you install LAMP/XAMPP? MySQL error 2002
Post by: gerald_clark 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