Is a MongoDB database installed on a server? - mysql

I just started using MongoDB and Node.js with a MEAN Stack (MongoDB, Express, AngularJS, Node.js) on my local machine and at first I assumed that MongoDB was installed on the Node.js server kind of like MySQL is installed on Apache when you install the LAMP or WAMP stack.
But now I'm not so sure any more :)
How does it work? Where is MongoDB installed? Can I use it without Node.js? Can I use MySQL without a server?

Both MongoDB and MySQL are installed standalone on the host (in your case localhost).
MySQL is not installed on Apache. It's just the PHP interface to MySQL which requires Apache to serve it. You can use the MySQL command line (issue the mysql command in your shell console) without having Apache or PHP installed. The LAMP and WAMP stacks ship with the PHP MySQL interface configured.
MEAN is a similar stack, consisting of each individual component available independently as well as knit together seamlessly as per requirement. You can query a MongoDB hosted on a different machine from the machine you have the MEAN stack on too.

Related

Configure iRedMail to use Mysql instaed of MariaDB on Debian 10

I have a development server with Mysql. I need mysql specifically as I have used the C++ connector API extensively in my code and this API does not work with MariaDB. I need to install a very secure, easily configurable mail server on this server and have chosen to install iRedMail. The thing is, on Buster, mysql gets replaced by MariaDB when you run the iRedMail install script.
Is there a way to configure iRedMail to run with a mysql backend?
I have tried the following tutorial:
https://docs.iredmail.org/install.iredmail.with.remote.mysql.server.html
It did not work. That is the only one I have found.

How to install or transfer the existing moodle project from ubuntu to Windows (Postgres to MariaDB sql)

My company has two web based project. Our main project (Starbooks) was built using xampp server and Codeigniter framework that installed in our Windows OS and the second project (Frontlearners) was built in Lamp server and moodle (LMS) framework with Postgres database that installed in ubuntu platform.
My goal is to collide this two projects into one by moving the second project (Frontlearners) into the main project (Starbooks) server which uses with xampp server windows platform.
My first attempt is to export the moodle Postgres database using PGAdmin then move the moodle project to the main project server on windows. But I don't know if this is the correct way or not because Postgres and mysql are different database type. I've searching across the internet hoping for the answer or tutorial related to my problem but the results are always fresh installation of moodle which is not related to my problem.
Anybody knows how to solve this problem, a tutorial link, or any article about this situation?
There is a database transfer tool in Moodle.
https://docs.moodle.org/311/en/Database_transfer
So you can convert the PostgreSQL database to MariaDB
First ensure MariaDB is installed on Ubuntu
Turn off cron and put the site in maintenance mode
Then go to Site administration > Development > Experimental > Database migration to convert the database.
Or direct to /admin/tool/dbtransfer/index.php
The tool will check the database structure matches the structures in the install.xml files. If there are any differences, then you will need to update the relevant install.xml file or database table before continuing.
If its a large database, then the UI will probably time out. So use the command line version instead:
php admin/tool/dbtransfer/cli/migrate.php --help
Having said all that, IMHO I would transfer the Windows project to Linux.

Process of creating database on your own server

I bought "Hetzer" server so I can create my own database and practice a little bit. My server is using Ubuntu. I plan to also create a script (probably in node or asp) so my android application can communicate with database.
How to start with creating database, what to do?
Firstly https://www.hetzner.com/ is one of the best professional web hosting providers. In order to set up your Mysql server to your ubuntu machine. Install lamp stack. There are many tutorials about installing lamp. Then open your DB for remote connection or do kind of restful service to access your data in DB.

Is MySQL a database? or a database server? Why do we install xampp or wamp in order to access MySQL?

I heard that MySQL is a database server. If it is a database server, then what is the need of installing other servers like xampp or lampp? Do xampp or wamp or lampp do other jobs than being a Database server?
XAMPP, WAMP and LAMPP are all stacks for creating web solutions. The acronyms come from A Apache (web server), M MySQL or MariaDb (Database), and P for Perl or PHP for the scripting component.
MySQL itself is just a database server (RDBMS) so you would require additional components to build an overall web solution (provided in the stacks above).
Depending on your operating system, W(Windows), L(Linux) , X(All) then we have Apache, Mysql running at different ports.
PHP including the rest of your code files stored in htdocs as they have corresponding engines in relative XAMP directories (eg php.ini). All these will give you a look and feel of a typical server environment and accommodate your frameworks (laravel, noodle etc) you can't get all that from mysql server alone.

Replace mariadb with mysql on Plesk 12.5.30

I need to use standard mysql, in plesk it says everywhere that it is mysql but when I login to console it says mariadb.
I understand that it is very similar but this plesk will be hosting staging systems so they must use exactly the technology that the product servers use.
Is it possible to do it somehow using the web interface or do I have to manually install it from console?
As I see it's impossible because plesk-mysql-server package has explicit dependency for mariadb-server.
Yes, you can solve this with --force, but it means further troubles with plesk updates and upgrades.
If you need DB server for some application you can install it on separate server and register it as remote DB server in Tool&Settings > Database Servers.