Accessing git to install mysql on server on gandi.net - mysql

I purchased a Simple Hosting instance using node.js/mysql on gandi.net.
I'm trying to set up my database, but I'm having some issues with connectivity.
I found some sample code to connect and talk to the database (which I set up via PHPMyAdmin), but it requires the mysql module (which I assumed would already be installed on my instance, but since I don't know how any of this works, that's fine).
I get the error:
Error: Cannot find module 'mysql'
in my log file.
I'm at a loss though as to how to actually install the module.
I tried to use their SSH console (via a firefox plugin), but my SSH credentials don't have the permission to run 'npm install mysql' and sudo isn't installed.
I also tried to install Git for Windows from mysisgit but I have zero idea how to connect to my remote server from this tool.
I'm just looking for some advice on how to proceed. I'm totally new and am engaging in learning this for personal development, so I don't have a lot of info on where to turn. Thanks!

The problem was that I wasn't using SSH to install to the correct directory (I was just trying to run it directly when I logged into shell). I needed to navigate into my web/vhosts/default/ directory, then the 'npm install mysql' worked absolutely fine.

Related

Trying to launch json server in my localhost but states that the local host never sent date

i'm new to coding and right now i'm learning to launch json server through VSC in my bootcamp (flatiron). I'm having trouble with opening it in my localhost file in my google browser. I'm running Ubuntu on my PC. when I installed npm install -g json-server it stated that I have 4 moderate severity vulnerabilities.
I have tried to turn off my firewalls and antivirus, cleared the chrome history, tried to change my DNS and had no luck.
I've been stuck with this issue for 2 days now, please help !
[this is what local host is stating in the web browser1
This is the vulnerabilities being shown

What is the applications.json made by redmine on Cpanel/WHM

I installed the Redmine on the Cpanel/WHM server.
After that, I found the file /var/cpanel/userdata/USERD/applications.json.
It might be able to access the /home/USER/redmine from the URL http://example.com/redmine.
I want to make sure that what system uses the file and led to access the Redmine.

Is it possible to use OpenShift without using rhc?

I am trying to get an application running on OpenShift but after trying to create an ssh key on Ubuntu using ssh-keygen I ran into permissions problems. This is because I find I have no need for the rhc client if it only automates this process but bloats my computer (laptop) with a ruby installation.
I find that it would be best to have an alternative for Ubuntu (Linux) users. Is it possible to make this happen or do I have to go the rhc way?
You get a long way without the rhc command line tool. Obviously you can create your ssh key yourself and add/mange it via the OpenShift website. You can also create your application there and add cartridges. When it comes to starting the app, you can usually do that by jsut pushing your git repository. Last but not least, you can ssh onto your OpenShift gear and do a lot from there, for example view the log files.
That said, the rhc client is your one stop client for all this (and more). So even if you might not need it right now and some task are in fact done easier without it, I would still recommend to install it. A lot of information/tutorials are using rhc and w/o enough experience you will not know how to achieve a certain task in a different way.

Mercurial on share host without SSH

I am trying to get mercurial to work on a shared host without SSH access.
I have looked through https://www.mercurial-scm.org/wiki/PublishingRepositories and seen different means to publish my repository to the web but not been able to get any method to work because of certain dependencies.
For example, I looked at hgweb, it says
"First of all, you need to have a Python installation that can access the mercurial package. Verify this by running python and typing the following:
import mercurial"
I havent worked with python before and as such not sure where to run the "import mercurial" command. i am guessing via ssh for which i do not have access.
Also came across SCM-Manager, the quick guide just talks about downloading the source and extracting the content to your server, SCM manager depends on java and also not sure how to get that to work over the web.
Which of hgweb, SCM-Manager and RhodeCode is possible to set up without ssh access?
Short Answer: NONE
But you can at least try, if you have Java Application Server running (Tomcat, GlassFish etc), run SCM-manager as Web application (*.war)

mysqlworkbench without root access

I have a full normal user account for ssh access and I'd like to use the mysql diff capability of mysqlworkbench's mysqldbcompare (or some other cli tool if it exists). The problem is I don't have root access. Can I install this in my normal user account so I can compare my DB's on that server?
The best way to do such things is to install them as root using the system's package manager, but I'm sure you know that :P
I downloaded the source code from their website, and it uses a traditional configure script. I have installed programs, in fact whole ecosystems, in unprivileged user accounts using configure scripts. Usually all it takes is to specify where you want files to be installed:
./configure --prefix=$HOME/eco
Sometimes you have to install dependencies too. Then make sure to set LD_LIBRARY_PATH accordingly.
Depending on the distro you're using, you can even install packages to your home directory: see this question