How put NetBeans on redhat? - html

I'm try to build some html, jsp, java(servlet) and database Mysql in Netbeans, I just created a account for redhat, how can I move the NetBeans on redhat and the MySQL too.
I did not find any way on searching related content.
What should I do to host the server on redhat, rather than from my pc local.

Related

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.

Grails - Open MySQL and Apache Server from Project without Xampp\Wamp

I am building a Grails Project that uses MySQL for manipulating database entries and execute CRUD examples.
For the MySQL server to be active, I use XAMPP Control Panel and I must have Apache and MySQL opened in the XAMPP Control Panel in order to establish a connection between Grails and my MySQL Database.
The Grails Project starts Tomcat server itself everytime I run my project, and I dont know how I can achieve that with Apache and MySQL, so that I wont have to use the XAMPP Panel every time. When the WAR is created, I should be able to create the connection from within the project, without the need of a Server Panel like Xampp or Wamp.
I would like to find a way to start Apache and MySQL server from inside the Grails Project. Any ideas?

How do I setup a visual MySQL client if I already have MySQL installed in my system?

I have downloaded the MySQL from the following link:
http://dev.mysql.com/downloads/mysql/
Downloaded the version 8.0.0. I have OS X 10.10.5
Now, I suppose I need to configure a visual MySQL client on my laptop to write queries. For that, I have installed sequelpro (sequelpro.com).
I need help on following points:
- Since there are a number of sample databases which one can use to learn SQL, can you please guide me on few such databases. My objective is to learn advanced SQL.
- Also, how do I configure my client (sequelpro) to connect to that database so that I can run queries.
As of now, I am stuck with the following screenshot with no clue what to do next.
Thanks a lot. Screenshot here
Based on the fact you said in the comments you have OSX and you installed mysql manually without phpmyadmin I suggest you download and install mamp.
mamp
1: https://www.mamp.info/en/ is,
MAMP installs a local server environment in a matter of seconds on
your computer. It comes free of charge, and is easily installed. MAMP
will not compromise any existing Apache installation already running
on your system. You can install Apache, PHP and MySQL without starting
a script or having to change any configuration files! Furthermore, if
MAMP is no longer needed, just delete the MAMP folder and everything
returns to its original state (i.e. MAMP does not modify any of the
"normal" system).
Basically it is a fake server that runs on your computer. This will be yours for localhost development. You can use it to serve your localhost php applications, change versions of php and gives you a GUI for mysql which is phpmyadmin.
Once you install mamp
you might need to configure mamp to use the mamp mysql but most likley it will work out of the box. If you do run into any problems make sure you stop the instance of mysql you installed already before running mamp then trying to ran mamp again and it should be using the correct version.

WordPress Development with MAMP not working since installing MySQL using terminal

I'm having a problem with localhost servers and databases. I'm by no means a pro at all of this but I've been developing WordPress websites for a short while and have been using MAMP because of how simple it is.
Now I understand that it installs MySQL for you and that Apache and PHP are all included with OS X, but I began learning Ruby on Rails and while I was following a tutorial I installed MySQL manually via terminal and I think I've ran into some collision problems now.
For a while MAMP refused to start the SQL server so I've changed the ports to Apache 8888 and SQL 8889 and now seems to be starting fine (which are the defaults I believe but were different for some reason).
Now I've got two different database locations (I think). One which I can see via the terminal using mysql -u root -p and the other which I can see by launching MAMP and viewing PHPMyAdmin. If I create a database in one I cannot see it in the other, but more importantly when I create the database in MAMP's phpMyAdmin and try installing WP it doesn't recognise it, is this because my username/password may have been changed for MAMP or should it all be the same?
So far I've been thinking maybe I should uninstall MAMP and do a hard reset for MySQL etc and just use the terminal to manage MySQL, phpMyAdmin and Apache etc but I'm not sure - is there a better way to go about this? I am working on a WP website for a client at the moment in tandem with a Ruby on Rails project so need to ideally jump between the two!
Having had a look around this looks like a good guide for running WordPress on your Mac locally... https://coolestguidesontheplanet.com/fastest-way-to-install-wordpress-on-osx-10-6/
They also have nice guides for installing Apache, MySQL and PHP as well for Mavericks https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/ and Yosemite https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/
Hope these help and good luck :)

Connecting to a database in Visual Studio

I'm afraid I have been stuck on this one for a couple days now.
I've worked with databases before (normally using php and a mysql server) but I'm new to visual studio and I just can't seem to find much info on what kind of server you need to connect to (and how).
I guess the first part of my question would be: Can the server running the database be a remotely hosted "online" mysql server or does it have to be installed on your machine (for example like you can install apache)?
The easiest option for me would probably be to connect to my existing mysql server of my online website, but how?
I have sql server management studio installed but am not sure what to enter as the server name etc in the dialog box that shows up.
I do know my mysql server details and all, but just have no idea how where and how or even if I can connect it directly to my visual studio project.
I have looked several times on google but till now I have only been able to find videos and tutorials showing how to create a new database - which assume you are already connected to some sort of server.
Also, if you do use a locally hosted database server then wouldn't you have to port it to a different (online) database once the website goes live?
Thank you for your time!
Yes, the database can be remotely hosted, I'have this working on my local machine with a remote MsSql database. Make sure the remote database server accepts connections from your IP.
I'm pretty sure the MsSql Server Management Studio is only for MsSql, not MySql. The server name in my case is the IP for the remote MsSql database server, further you need the login and password for your database. But if you use your remote MySql, you don't need this tool.
I have no experience with MySql, but it must be possible to use the database in your Visual Studio project with the correct "connectionstring". The connectionstring contains the type of the database, where it is located, login and pasword, etc. You can find the syntax of you connectionstring here: www.connectionstrings.com/mysql/