Install MariaDB in Windows subsystem Linux (WSL) - mariadb

I'm trying to start MariaDB in the windows linux subsystem using
sudo apt-get update
sudo apt-get install mariadb-server
sudo service mysql start
but getting the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")
I know, this is not a new question, I read a lot about other solutions under Ubuntu to fix this, but nothing worked so far. Has anybody an idea how to get it going?
Merci A

I'm encountered with the same problem. Fortunately I found a solution at https://github.com/microsoft/WSL/issues/745#issuecomment-237412792
sudo /etc/init.d/mysql start
which works for me. Hope it works for you too.

Do you have already installed SQL on your Windows system?
Try to remove them and install MariaDB on WSL only

I had a similar problem starting MariaDB installed on an Ubuntu distro in WSL after already installing under the Windows host.
I found just stopping the Windows version was enough to enable the WSL Ubuntu version to run rather than having to uninstall the Windows version completely.

this post seems to be a little bit older but maybe it will help.
I installed a MariaDB on Debian 10 (WSL) and ran into the same problem.
After a little bit of research i noticed that the mysql service wasn't running.
with /etc/init.d/mysql start i start / restart the service and voila everything fine.
Hint: Have to do it after each Systemrestart!

Related

I am not able to install Apache Airflow in Windows

My attempts include:
[ here i have python 3.9 so my constraints is 3.9]
I created a virtual environment and attempted to install Apache-Airflow by using pip install 'apache-airflow==2.5.1' / —constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.5.1/constraints-3.9.txt," but I received an error that I couldn't understand, so I looked on the stack community for advice and learned that I needed to add -t, which I did.
but then I started getting permission errors, then I went into community posts and how to fix permission errors, and it was suggested that I should run command prompt as administrator and then install unfortunately this thing isn't working for me
I've tried running cmd as administrator, going to my project's directory, activating virtualenv, and installing the library, but I still get the same problem. PermissionError: [WinError 5] Access is denied: 'D:\\'
Thanks in advance.
Try removing the slash (/) from the command before the --constraint and then running inside the cmd terminal; it will work.
pip install apache-airflow==2.5.1 --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.5.1/constraints-3.9.txt"
Note : Please be aware that the above recommendation is for Windows, but even if it is successfully installed you won't be able to run airflow because of the files used, such as pwd and others. Therefore, I will recommend that you use airflow in Windows using Ubuntu. You can follow this link to install Ubuntu in your system and set up airflow.
youtube-video-url

How can I install NebulaGraph on Windows?

I want to install the Nebula Graph database on Windows, but I didn't find any references. I tried install on my own, but failed in the end.
I viewed NebulaGraph-related docs https://docs.nebula-graph.io/3.3.0/2.quick-start/2.install-nebula-graph/, but I didn't find what I want to.
How can I install NebulaGraph on Windows?
The situation for Windows is similar to macOS as explained here.
We could either leverage hypervisors(WSL2, VirtualBox, VMware player, etc)/or WSL1 to spawn a Linux machine to deploy it in the VM or go with Docker Desktop + Nebula-Docker-Compose.

Replicating Homestead Environment on Ubuntu 14.04.5

I am currently working on a laravel project on my MAC using homestead environment. Am i able to replicate a homestead environment on Ubuntu 14.04.5?
If you want to replicate the homestead environment you need to install this softwares as listed in the docs:
Git
PHP 7.1
Nginx
MySQL
MariaDB
Sqlite3
Postgres
Composer
Node (With Yarn, Bower, Grunt, and Gulp)
Redis
Memcached
Beanstalkd
Mailhog
ngrok
Probably you do not need all of them so remove what you do not use.
To install each software you can try so search in the apt repository and search for a guide con configure each of them.
For a LEMP stack you can try this: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04
Homestead uses a script called settler that it uses to provision the environment you use in Homestead, the script can be found here:
https://github.com/laravel/settler/blob/master/scripts/provision.sh

Cloudstack System VMs failed to start

Trying to deploy CloudStack 4.5.2 using the ShapeBlue builds on Ubuntu 14.4. I got as far as adding vcenter and everything looks good. Save for the fact that the system VMs won't power on. This is where I am lacking in experience, I cannot find a good answer.
I've included some of the the logs, it's not clear to me whether this is a primary, secondary, or OVA mismatch. management-server.log
Can you point me in the right direction?
you can refer this as a bug. Try running the following command sudo apt-get update and then restart the management server by running following command sudo service cloudstack-management restart. Hope this helps.

rdf_loader_run stuck and Virtuoso server doesn't respond to queries

I've run these commands:
ld_add('/path/datasets/dbpedia/2015-04/dbpedia_2015-04.owl', 'http://dbpedia.org/resource/classes#');
rdf_loader_run();
ld_dir_all('/path/datasets/dbpedia/2015-04/importedGraphs/dbpedia.org', '*.*', 'http://dbpedia.org');
That all ran successfully, but then I ran:
rdf_loader_run();
It's been 48 hours on a CoreI7 machine with 24GB ram, Virtuoso server is not using any CPU, and it doesn't respond to queries such as:
select * from DB.DBA.LOAD_LIST;
...in another instances of isql-vt. The size of files in /var/lib/virtuoso-opensource-6.1/db/ are not increasing.
The problem was I was using an old version of virtuoso, by upgrading to 7.2 as suggested in comments it solved. I didn't have this problem on my macbook, so seems that while homebrew installs latest version by default, apt-get doesn't do so in Ubuntu and you need to install the latest version.

Resources