Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm going to set up my own blog on a solaris server
where now my personal homepage is located. First
I tried movabletype but failed in the installation due
to some Perl DB problems. I have no root access and
our admin just is kind of unresponsive to my request.
Now I am reading documentation of wordpress. It
requires mysql and php support. So here are my questions:
(1) How do I know if mysql is installed and if yes, its version?
I tried "which mysql" and "whereis mysql", but seems
it returned nothing, so can I assume the mysql is missing.
(2) Can I install mysql in my own space without root access?
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782
Rep:
Quote:
(1) How do I know if mysql is installed and if yes, its version?
I tried "which mysql" and "whereis mysql", but seems
it returned nothing, so can I assume the mysql is missing.
ps -ef|grep mysql
Quote:
(2) Can I install mysql in my own space without root access?
Not (easily) if the mysql distribution is under pkg format, yes if you compile it from the source code.
Quote:
(3) How do I know if the system supports php?
That depends first on the web server used, if it is apache, search "php" occurences in the httpd.conf file.
I just built mysql from source on Solaris. It's
installed in my own space since I have no root
access on that solaris server.
The problem is I always get following error when
trying to run mysql.
sand:163% ./mysql
ERROR 2002: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (2)
Of course, there is no such file '/tmp/mysql.sock' and
seems I need to modify the configure file '/etc/my.conf'
which also does not exist at all since I do not have write
access to /tmp and /etc.
I can run the ./bin/mysql_conf, but don't know how to use
that program.
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782
Rep:
Innersmile,
It looks like you built your mysql without changing pathes to point to directories you own.
I don't think the problem you describe is Solaris specific, so you may have more luck posting this question to a more suitable forum.
Moreover, googling "ERROR 2002: Can't connect to local MySQL server" gives tons of hits, your answer is probably there.
It looks like you built your mysql without changing pathes to point to directories you own.
I don't think the problem you describe is Solaris specific, so you may have more luck posting this question to a more suitable forum.
Moreover, googling "ERROR 2002: Can't connect to local MySQL server" gives tons of hits, your answer is probably there.
Hi Jlliagre,
Thank you for your reply.
I did use --prefix option when I ran ./configure, don't know other way to change pathes.
Yes, I googled before and it did return tons of answers, while most of them
suggest modifying the configuration file '/etc/my.conf' which does not exist
on my machine at all. I would post this question to other forum if I can not
get solution today. :-)
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782
Rep:
From what you said, perhaps mysql just doesn't supports to be installed without root access rights, as "/etc" seems hard-coded.
Anyway, I think this is maybe the easiest of the problems you're faced for your blog project, as I see no way to later enable php on the solaris host web server and to configure it to connect to your local database, should you succeed in running it, unless you also plan to build a home instance of apache/php.
My advice would be for you to insist convincing your sysadmin to help ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.