<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.ulyssis.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Erico</id>
	<title>ULYSSIS documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.ulyssis.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Erico"/>
	<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/Special:Contributions/Erico"/>
	<updated>2026-06-02T08:26:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Registering_a_new_account_TEST&amp;diff=1828</id>
		<title>Registering a new account TEST</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Registering_a_new_account_TEST&amp;diff=1828"/>
		<updated>2023-10-26T08:36:21Z</updated>

		<summary type="html">&lt;p&gt;Erico: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To register an account, follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Go to https://ucc.ulyssis.org/accounts and log in using your Central KU Leuven Account.&lt;br /&gt;
# Select the kind of account you wish to register:&lt;br /&gt;
#* Most people will want to register a '''regular account''' for '''personal use'''.&lt;br /&gt;
#* If you are a '''recognised organisation''' by LOKO, the KU Leuven or another relevant entity, you may be entitled to an organisation account, which has a reduced price. You can use the following to verify if you are eligible:&lt;br /&gt;
#**The list of associations (vrije verenigingen) recognised by [http://loko.be/verenigingen/ LOKO].&lt;br /&gt;
#**KU Leuven research groups. Please email us on [mailto:ulyssis@ulyssis.org ulyssis@ulyssis.org] with a link to your faculty/department's list of research groups.&lt;br /&gt;
#**Organisations recognised by their faculty as an (optional) part of the curriculum and that have a permanent character. For example the [https://iiw.kuleuven.be/studeren/opleidingen/techinvent/ventures-teams teams] of the Postgraduate Tech Innovations in Ventures &amp;amp; Teams at Group T.&lt;br /&gt;
#**If you are a daughter organisation of one or multiple faculty unions (kringen), for example a fakbar.&lt;br /&gt;
#**Organisations outside of Campus Leuven, but within the KU Leuven association, are considered on an indivual basis. Feel free to send us more details on [mailto:ulyssis@ulyssis.org ulyssis@ulyssis.org] and we will review your particular situation.&lt;br /&gt;
#*If you are a recognised '''faculty union''' (kring), assembly organisation (overkoepelende organisatie), or '''faculty consultative body''' (facultair overlegorgaan) you are entitled to a free account. You can use the following to verify if you are eligible:&lt;br /&gt;
#**The list of recognised faculty unions (kringen) from LOKO on http://loko.be/verenigingen/.&lt;br /&gt;
#** The list of recognised assembly organisations (overkoepelende organisaties) on the [https://kennisdatabank.loko.be/index.php/Studentenorganisaties_in_Leuven#Overkoepelende_organisaties LOKO knowledge database].&lt;br /&gt;
#**The list of recognised faculty consultative bodies from the Studentenraad KU Leuven on https://www.sturakuleuven.be/onze-werking/facultaire-overlegorganen/.&lt;br /&gt;
# After picking your account type you have to choose which options you want, as well as a username and a language.&lt;br /&gt;
# Accept the ULYSSIS terms of use and confirm your order.&lt;br /&gt;
# An email will be sent to your KU Leuven email address to confirm your order alongside a request for payment. &lt;br /&gt;
# As soon as we have received and processed your payment, your account will be activated and you will receive instructions to set a password.&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Registering_a_new_account_TEST&amp;diff=1827</id>
		<title>Registering a new account TEST</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Registering_a_new_account_TEST&amp;diff=1827"/>
		<updated>2023-10-26T08:35:36Z</updated>

		<summary type="html">&lt;p&gt;Erico: Created page with &amp;quot;To register an account, follow these steps:  # Go to https://ucc.ulyssis.org/accounts and log in using your Central KU Leuven Account. # Select the kind of account you wish to...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To register an account, follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Go to https://ucc.ulyssis.org/accounts and log in using your Central KU Leuven Account.&lt;br /&gt;
# Select the kind of account you wish to register:&lt;br /&gt;
#* Most people will want to register a '''regular account''' for '''personal use'''.&lt;br /&gt;
#* If you are a '''recognised organisation''' by LOKO, the KU Leuven or another relevant entity, you may be entitled to an organisation account, which has a reduced price. You can use the following to verify if you are eligible:&lt;br /&gt;
#**The list of associations (vrije verenigingen) recognised by [http://loko.be/verenigingen/ LOKO].&lt;br /&gt;
#**If you are a daughter organisation of one or multiple faculty unions (kringen), for example a fakbar.&lt;br /&gt;
#**KU Leuven research groups. Please email us on [mailto:ulyssis@ulyssis.org ulyssis@ulyssis.org] with a link to your faculty/department's list of research groups.&lt;br /&gt;
#**Organisations recognised by their faculty as an (optional) part of the curriculum and that have a permanent character. For example the [https://iiw.kuleuven.be/studeren/opleidingen/techinvent/ventures-teams teams] of the Postgraduate Tech Innovations in Ventures &amp;amp; Teams at Group T.&lt;br /&gt;
#**Organisations outside of Campus Leuven, but within the KU Leuven association, are considered on an indivual basis. Feel free to send us more details on [mailto:ulyssis@ulyssis.org ulyssis@ulyssis.org] and we will review your particular situation.&lt;br /&gt;
#*If you are a recognised '''faculty union''' (kring), assembly organisation (overkoepelende organisatie), or '''faculty consultative body''' (facultair overlegorgaan) you are entitled to a free account. You can use the following to verify if you are eligible:&lt;br /&gt;
#**The list of recognised faculty unions (kringen) from LOKO on http://loko.be/verenigingen/.&lt;br /&gt;
#** The list of recognised assembly organisations (overkoepelende organisaties) on the [https://kennisdatabank.loko.be/index.php/Studentenorganisaties_in_Leuven#Overkoepelende_organisaties LOKO knowledge database].&lt;br /&gt;
#**The list of recognised faculty consultative bodies from the Studentenraad KU Leuven on https://www.sturakuleuven.be/onze-werking/facultaire-overlegorganen/.&lt;br /&gt;
# After picking your account type you have to choose which options you want, as well as a username and a language.&lt;br /&gt;
# Accept the ULYSSIS terms of use and confirm your order.&lt;br /&gt;
# An email will be sent to your KU Leuven email address to confirm your order alongside a request for payment. &lt;br /&gt;
# As soon as we have received and processed your payment, your account will be activated and you will receive instructions to set a password.&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=TEST_Software_Version_Checker&amp;diff=1826</id>
		<title>TEST Software Version Checker</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=TEST_Software_Version_Checker&amp;diff=1826"/>
		<updated>2023-10-26T08:13:04Z</updated>

		<summary type="html">&lt;p&gt;Erico: /* Ignoring specific software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
Many of our users use the same popular software to run their website. However, as is common in popular and widespread software, various bugs or errors can occur in the program. These flaws can be exploited by hackers to gain access to websites or databases. &lt;br /&gt;
&lt;br /&gt;
Whenever a new update is released for any popular software (e.g., WordPress, MediaWiki, Joomla) hackers will find out which security flaws have been patched, and using this knowledge, they try to find users who haven't updated their software, to gain access to the websites or databases. This is the reason why it is so critical to update the software itself,  plugins, themes, or any related software as soon as the updates roll out. To help facilitate this and prevent security breaches, we have created a tool, the Software Version Checker, to help you keep the most commonly used software up-to-date. Currently, this feature is only active if you have an organization or student union account.&lt;br /&gt;
==What to do when you receive an e-mail==&lt;br /&gt;
When you receive an e-mail from the Software Version Checker, it is of utmost importance to update the software mentioned in the e-mail. It is also the best time to check if the other software you use is up-to-date. As mentioned below, our tool does not check all software.&lt;br /&gt;
&lt;br /&gt;
You can find more information [[Updating WordPress|here]] on how to automate this for WordPress to save a lot of time and effort. Since updating MediaWiki can be a somewhat daunting process, we have made a more detailed guide available on [[Updating MediaWiki]]. &lt;br /&gt;
==Supported Software==&lt;br /&gt;
Sadly not every piece of software can be supported. Because of this, we have decided to choose the most popular software, since they are more likely to get security breaches.  &lt;br /&gt;
*Drupal (including modules and themes) &lt;br /&gt;
*Joomla (Plugins are not supported) &lt;br /&gt;
*MediaWiki (MediaWiki Extensions and Themes are not supported)&lt;br /&gt;
*phpBB (including plugins and styles) &lt;br /&gt;
*WordPress (including plugins and themes)&lt;br /&gt;
==Functionality of the Software Version Checker==&lt;br /&gt;
The Software Version Checker fulfills the following functions :  &lt;br /&gt;
*Scan relevant files, detect supported software, and store in database&lt;br /&gt;
*Check the version and validity of outdated software&lt;br /&gt;
*Notify accounts that are using outdated software&lt;br /&gt;
The Software Version Checker does this once every day.&lt;br /&gt;
&lt;br /&gt;
==Ignoring specific software==&lt;br /&gt;
The Software Version Checker allows specified paths to be excluded from its search. If you believe you have software that should be ignored (for example certain custom plugins or themes), you are free to e-mail a request to ulyssis@ulyssis.org. Please list your account name, the location of the specific file(s), the nature of what is being detected, and a detailed description of the specific situation.&lt;br /&gt;
==Ignoring Organisations/Student Unions==&lt;br /&gt;
The Software Version Checker also allows our users to ignore specific Organisations or Student Unions entirely. This feature is possible on request, but only after extensive deliberation with ULYSSIS. Enabling this feature also has possible consequences; no more mails about software that is outdated, unless it is enabled on request, and no possible support if the user's account gets hacked. If the account does get hacked it will be suspend immediately.&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1761</id>
		<title>Using MySQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1761"/>
		<updated>2022-10-01T13:28:49Z</updated>

		<summary type="html">&lt;p&gt;Erico: remove SQL workbench&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MySQL is one of the most popular databases for websites. It's used by most CMSes and other common web software, and many programming languages have support for it. ULYSSIS specifically uses MariaDB, which is a fork of MySQL with similar features and (almost) identical SQL syntax, but offers better performance and has less corporate interference in the development process.&lt;br /&gt;
&lt;br /&gt;
== Managing MySQL ==&lt;br /&gt;
All common management tasks can be performed through our control panel [https://ucc.ulyssis.org UCC], under the MySQL section.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL user===&lt;br /&gt;
To use MySQL on your ULYSSIS account, you first need to create a MySQL user on [https://ucc.ulyssis.org UCC]. In the MySQL section of the panel, you will be suggested to click a link to create a user. Then fill in a password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL database===&lt;br /&gt;
After having created a MySQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
===Deleting a MySQL database===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''MySQL'' in [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other contents will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Accessing MySQL ==&lt;br /&gt;
Our MySQL and PostgreSQL databases run on a separate database server, this means you may need to enter a specific host, together with the correct credentials, to access your database within a website or application. You may also wish to use a common tool such as PHPMyAdmin or access a database remotely. Details on how to do that are available in the sections below.&lt;br /&gt;
&lt;br /&gt;
===Using MySQL for your website or application===&lt;br /&gt;
you can connect to the database with the following details:&lt;br /&gt;
 Host: mysql.ulyssis.org&lt;br /&gt;
 Username: your account's username&lt;br /&gt;
 Password: the password you chose when you made the MySQL user&lt;br /&gt;
 Database: the database name you chose, prefixed by your username&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new mysqli('mysql.ulyssis.org', 'foobar', 'correct horse battery staple', 'foobar_website');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new PDO('mysql:host=mysql.ulyssis.org;dbname=foobar_website', 'foobar', 'correct horse battery staple');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL with PHPMyAdmin or Adminer===&lt;br /&gt;
Using your username and password you can easily manage your MySQL databases, tables and records on https://phpmyadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH tunnel. In many MySQL management tools this is already supported. &lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is also easily possible to use the following command to create a tunnel to a local port (in this case 3300) &lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 3300:mysql.ulyssis.org:3306 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the MySQL server with host 'localhost' and port '3300'.&lt;br /&gt;
To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep mysql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:mysql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
We can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1760</id>
		<title>Using MySQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1760"/>
		<updated>2022-10-01T12:34:28Z</updated>

		<summary type="html">&lt;p&gt;Erico: pgsql replaced with mysql in pgrep command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MySQL is one of the most popular databases for websites. It's used by most CMSes and other common web software, and many programming languages have support for it. ULYSSIS specifically uses MariaDB, which is a fork of MySQL with similar features and (almost) identical SQL syntax, but offers better performance and has less corporate interference in the development process.&lt;br /&gt;
&lt;br /&gt;
== Managing MySQL ==&lt;br /&gt;
All common management tasks can be performed through our control panel [https://ucc.ulyssis.org UCC], under the MySQL section.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL user===&lt;br /&gt;
To use MySQL on your ULYSSIS account, you first need to create a MySQL user on [https://ucc.ulyssis.org UCC]. In the MySQL section of the panel, you will be suggested to click a link to create a user. Then fill in a password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL database===&lt;br /&gt;
After having created a MySQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
===Deleting a MySQL database===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''MySQL'' in [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other contents will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Accessing MySQL ==&lt;br /&gt;
Our MySQL and PostgreSQL databases run on a separate database server, this means you may need to enter a specific host, together with the correct credentials, to access your database within a website or application. You may also wish to use a common tool such as PHPMyAdmin or access a database remotely. Details on how to do that are available in the sections below.&lt;br /&gt;
&lt;br /&gt;
===Using MySQL for your website or application===&lt;br /&gt;
you can connect to the database with the following details:&lt;br /&gt;
 Host: mysql.ulyssis.org&lt;br /&gt;
 Username: your account's username&lt;br /&gt;
 Password: the password you chose when you made the MySQL user&lt;br /&gt;
 Database: the database name you chose, prefixed by your username&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new mysqli('mysql.ulyssis.org', 'foobar', 'correct horse battery staple', 'foobar_website');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new PDO('mysql:host=mysql.ulyssis.org;dbname=foobar_website', 'foobar', 'correct horse battery staple');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL with PHPMyAdmin or Adminer===&lt;br /&gt;
Using your username and password you can easily manage your MySQL databases, tables and records on https://phpmyadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH tunnel. In many MySQL management tools this is already supported. &lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is also easily possible to use the following command to create a tunnel to a local port (in this case 3300) &lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 3300:mysql.ulyssis.org:3306 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the MySQL server with host 'localhost' and port '3300'.&lt;br /&gt;
To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep mysql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:mysql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
We can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
====MySQL Workbench====&lt;br /&gt;
While [https://www.mysql.com/products/workbench/ MySQL Workbench] might not fully support our MySQL database, all commonly used operations work perfectly. You can connect to our database using MySQL Workbench by creating a connection as follows ([username] should be replaced by your username, of course):&lt;br /&gt;
[[File:MySQL_Workbench_SSH.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1759</id>
		<title>Using MySQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1759"/>
		<updated>2022-09-30T08:14:38Z</updated>

		<summary type="html">&lt;p&gt;Erico: expanded SSH explanation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MySQL is one of the most popular databases for websites. It's used by most CMSes and other common web software, and many programming languages have support for it. ULYSSIS specifically uses MariaDB, which is a fork of MySQL with similar features and (almost) identical SQL syntax, but offers better performance and has less corporate interference in the development process.&lt;br /&gt;
&lt;br /&gt;
== Managing MySQL ==&lt;br /&gt;
All common management tasks can be performed through our control panel [https://ucc.ulyssis.org UCC], under the MySQL section.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL user===&lt;br /&gt;
To use MySQL on your ULYSSIS account, you first need to create a MySQL user on [https://ucc.ulyssis.org UCC]. In the MySQL section of the panel, you will be suggested to click a link to create a user. Then fill in a password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL database===&lt;br /&gt;
After having created a MySQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
===Deleting a MySQL database===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''MySQL'' in [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other contents will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Accessing MySQL ==&lt;br /&gt;
Our MySQL and PostgreSQL databases run on a separate database server, this means you may need to enter a specific host, together with the correct credentials, to access your database within a website or application. You may also wish to use a common tool such as PHPMyAdmin or access a database remotely. Details on how to do that are available in the sections below.&lt;br /&gt;
&lt;br /&gt;
===Using MySQL for your website or application===&lt;br /&gt;
you can connect to the database with the following details:&lt;br /&gt;
 Host: mysql.ulyssis.org&lt;br /&gt;
 Username: your account's username&lt;br /&gt;
 Password: the password you chose when you made the MySQL user&lt;br /&gt;
 Database: the database name you chose, prefixed by your username&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new mysqli('mysql.ulyssis.org', 'foobar', 'correct horse battery staple', 'foobar_website');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new PDO('mysql:host=mysql.ulyssis.org;dbname=foobar_website', 'foobar', 'correct horse battery staple');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL with PHPMyAdmin or Adminer===&lt;br /&gt;
Using your username and password you can easily manage your MySQL databases, tables and records on https://phpmyadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH tunnel. In many MySQL management tools this is already supported. &lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is also easily possible to use the following command to create a tunnel to a local port (in this case 3300) &lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 3300:mysql.ulyssis.org:3306 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the MySQL server with host 'localhost' and port '3300'.&lt;br /&gt;
To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep pgsql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
We can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
====MySQL Workbench====&lt;br /&gt;
While [https://www.mysql.com/products/workbench/ MySQL Workbench] might not fully support our MySQL database, all commonly used operations work perfectly. You can connect to our database using MySQL Workbench by creating a connection as follows ([username] should be replaced by your username, of course):&lt;br /&gt;
[[File:MySQL_Workbench_SSH.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1758</id>
		<title>Using PostgreSQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1758"/>
		<updated>2022-09-30T08:09:26Z</updated>

		<summary type="html">&lt;p&gt;Erico: typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a database ==&lt;br /&gt;
&lt;br /&gt;
You can create one or more PostgreSQL databases in [https://ucc.ulyssis.org UCC].&lt;br /&gt;
&lt;br /&gt;
The first database you create will have the same name as your username. Subsequent databases will be prefixed with &amp;quot;''username''_&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Managing your database ==&lt;br /&gt;
&lt;br /&gt;
* The easiest way to manage your database is using [https://phppgadmin.ulyssis.org phpPgAdmin].&lt;br /&gt;
* You can also access it via the [[Accessing shell servers over SSH|command line]] with:&lt;br /&gt;
 psql -h pgsql.ulyssis.org&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL user ===&lt;br /&gt;
To use PostgreSQL on you ULYSSIS account, you first need to create a PostgreSQL user on [https://ucc,ulyssis,org UCC]. In the PostgreSQL section of the panel, you will be suggested to click a link to create a user. Then fill in the password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL database ===&lt;br /&gt;
After having created a PostgreSQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically will be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
=== Deleting a PostgreSQL database ===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''PostgreSQL'' in  [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other content will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Using PostgreSQL for your website or application ==&lt;br /&gt;
&lt;br /&gt;
You can connect to the database with the following details:&lt;br /&gt;
&lt;br /&gt;
* Host: &amp;lt;code&amp;gt;pgsql.ulyssis.org&amp;lt;/code&amp;gt;&lt;br /&gt;
* Login: your ULYSSIS username&lt;br /&gt;
* Password: the PostgreSQL password you chose in UCC&lt;br /&gt;
* Database: the database you created in UCC&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$connection = pg_connect(&amp;quot;host=pgsql.ulyssis.org user=foo password=password db=foo&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$pdo = new PDO('pgsql:host=pgsql.ulyssis.org;dbname=foo', 'foo', 'password');&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing PostgreSQL with PHPPgAdmin or Adminer ===&lt;br /&gt;
Using your username and password you can easily manage your PostgreSQL databases, tables and records on https://phppgadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPPgAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing PostgreSQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH-tunnel. SSH-tunneling makes an encrypted connection between 2 devices, which we will use to map a port on the database server onto a local port on your device, so it behaves and can be used like a local port.&lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is easily possible to use the following command to create a tunnel to a local port (in this case 5400):&lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the PostgreSQL server with host 'localhost' and port '5400', To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep pgsql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
We can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
== PostGIS ==&lt;br /&gt;
If necessary for an application or website you wish to use on ULYSSIS, we can always enable PostGIS for the specific database you wish to use it on. Contact us at ulyssis@ulyssis.org and let us know you would like to get PostGIS enabled and on which specific database.&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1757</id>
		<title>Using PostgreSQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1757"/>
		<updated>2022-09-30T08:05:59Z</updated>

		<summary type="html">&lt;p&gt;Erico: replace PHPMyAdmin with PHPPgAdmin&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a database ==&lt;br /&gt;
&lt;br /&gt;
You can create one or more PostgreSQL databases in [https://ucc.ulyssis.org UCC].&lt;br /&gt;
&lt;br /&gt;
The first database you create will have the same name as your username. Subsequent databases will be prefixed with &amp;quot;''username''_&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Managing your database ==&lt;br /&gt;
&lt;br /&gt;
* The easiest way to manage your database is using [https://phppgadmin.ulyssis.org phpPgAdmin].&lt;br /&gt;
* You can also access it via the [[Accessing shell servers over SSH|command line]] with:&lt;br /&gt;
 psql -h pgsql.ulyssis.org&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL user ===&lt;br /&gt;
To use PostgreSQL on you ULYSSIS account, you first need to create a PostgreSQL user on [https://ucc,ulyssis,org UCC]. In the PostgreSQL section of the panel, you will be suggested to click a link to create a user. Then fill in the password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL database ===&lt;br /&gt;
After having created a PostgreSQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically will be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
=== Deleting a PostgreSQL database ===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''PostgreSQL'' in  [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other content will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Using PostgreSQL for your website or application ==&lt;br /&gt;
&lt;br /&gt;
You can connect to the database with the following details:&lt;br /&gt;
&lt;br /&gt;
* Host: &amp;lt;code&amp;gt;pgsql.ulyssis.org&amp;lt;/code&amp;gt;&lt;br /&gt;
* Login: your ULYSSIS username&lt;br /&gt;
* Password: the PostgreSQL password you chose in UCC&lt;br /&gt;
* Database: the database you created in UCC&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$connection = pg_connect(&amp;quot;host=pgsql.ulyssis.org user=foo password=password db=foo&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$pdo = new PDO('pgsql:host=pgsql.ulyssis.org;dbname=foo', 'foo', 'password');&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing PostgreSQL with PHPPgAdmin or Adminer ===&lt;br /&gt;
Using your username and password you can easily manage your PostgreSQL databases, tables and records on https://phppgadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPPgAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing PostgreSQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH-tunnel. SSH-tunneling makes an encrypted connection between 2 devices, which we will use to map a port on the database server onto a local port on your device, so it behaves and can be used like a local port.&lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is easily possible to use the following command to create a tunnel to a local port (in this case 5400):&lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the PostgreSQL server with host 'localhost' and port '5400', To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep psgql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
Then we can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
== PostGIS ==&lt;br /&gt;
If necessary for an application or website you wish to use on ULYSSIS, we can always enable PostGIS for the specific database you wish to use it on. Contact us at ulyssis@ulyssis.org and let us know you would like to get PostGIS enabled and on which specific database.&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1756</id>
		<title>Using PostgreSQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1756"/>
		<updated>2022-09-30T08:05:22Z</updated>

		<summary type="html">&lt;p&gt;Erico: replace PHPMyAdmin with PHPPgAdmin&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a database ==&lt;br /&gt;
&lt;br /&gt;
You can create one or more PostgreSQL databases in [https://ucc.ulyssis.org UCC].&lt;br /&gt;
&lt;br /&gt;
The first database you create will have the same name as your username. Subsequent databases will be prefixed with &amp;quot;''username''_&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Managing your database ==&lt;br /&gt;
&lt;br /&gt;
* The easiest way to manage your database is using [https://phppgadmin.ulyssis.org phpPgAdmin].&lt;br /&gt;
* You can also access it via the [[Accessing shell servers over SSH|command line]] with:&lt;br /&gt;
 psql -h pgsql.ulyssis.org&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL user ===&lt;br /&gt;
To use PostgreSQL on you ULYSSIS account, you first need to create a PostgreSQL user on [https://ucc,ulyssis,org UCC]. In the PostgreSQL section of the panel, you will be suggested to click a link to create a user. Then fill in the password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL database ===&lt;br /&gt;
After having created a PostgreSQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically will be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
=== Deleting a PostgreSQL database ===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''PostgreSQL'' in  [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other content will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Using PostgreSQL for your website or application ==&lt;br /&gt;
&lt;br /&gt;
You can connect to the database with the following details:&lt;br /&gt;
&lt;br /&gt;
* Host: &amp;lt;code&amp;gt;pgsql.ulyssis.org&amp;lt;/code&amp;gt;&lt;br /&gt;
* Login: your ULYSSIS username&lt;br /&gt;
* Password: the PostgreSQL password you chose in UCC&lt;br /&gt;
* Database: the database you created in UCC&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$connection = pg_connect(&amp;quot;host=pgsql.ulyssis.org user=foo password=password db=foo&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$pdo = new PDO('pgsql:host=pgsql.ulyssis.org;dbname=foo', 'foo', 'password');&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing PostgreSQL with PHPPgAdmin or Adminer ===&lt;br /&gt;
Using your username and password you can easily manage your PostgreSQL databases, tables and records on https://phppgadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[Using PHPPgAdmin|using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing PostgreSQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH-tunnel. SSH-tunneling makes an encrypted connection between 2 devices, which we will use to map a port on the database server onto a local port on your device, so it behaves and can be used like a local port.&lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is easily possible to use the following command to create a tunnel to a local port (in this case 5400):&lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the PostgreSQL server with host 'localhost' and port '5400', To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep psgql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
Then we can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
== PostGIS ==&lt;br /&gt;
If necessary for an application or website you wish to use on ULYSSIS, we can always enable PostGIS for the specific database you wish to use it on. Contact us at ulyssis@ulyssis.org and let us know you would like to get PostGIS enabled and on which specific database.&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1755</id>
		<title>Using PostgreSQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1755"/>
		<updated>2022-09-30T08:03:36Z</updated>

		<summary type="html">&lt;p&gt;Erico: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a database ==&lt;br /&gt;
&lt;br /&gt;
You can create one or more PostgreSQL databases in [https://ucc.ulyssis.org UCC].&lt;br /&gt;
&lt;br /&gt;
The first database you create will have the same name as your username. Subsequent databases will be prefixed with &amp;quot;''username''_&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Managing your database ==&lt;br /&gt;
&lt;br /&gt;
* The easiest way to manage your database is using [https://phppgadmin.ulyssis.org phpPgAdmin].&lt;br /&gt;
* You can also access it via the [[Accessing shell servers over SSH|command line]] with:&lt;br /&gt;
 psql -h pgsql.ulyssis.org&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL user ===&lt;br /&gt;
To use PostgreSQL on you ULYSSIS account, you first need to create a PostgreSQL user on [https://ucc,ulyssis,org UCC]. In the PostgreSQL section of the panel, you will be suggested to click a link to create a user. Then fill in the password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL database ===&lt;br /&gt;
After having created a PostgreSQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically will be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
=== Deleting a PostgreSQL database ===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''PostgreSQL'' in  [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other content will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Using PostgreSQL for your website or application ==&lt;br /&gt;
&lt;br /&gt;
You can connect to the database with the following details:&lt;br /&gt;
&lt;br /&gt;
* Host: &amp;lt;code&amp;gt;pgsql.ulyssis.org&amp;lt;/code&amp;gt;&lt;br /&gt;
* Login: your ULYSSIS username&lt;br /&gt;
* Password: the PostgreSQL password you chose in UCC&lt;br /&gt;
* Database: the database you created in UCC&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$connection = pg_connect(&amp;quot;host=pgsql.ulyssis.org user=foo password=password db=foo&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$pdo = new PDO('pgsql:host=pgsql.ulyssis.org;dbname=foo', 'foo', 'password');&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing PostgreSQL with PHPMyAdmin or Adminer ===&lt;br /&gt;
Using your username and password you can easily manage your PostgreSQL databases, tables and records on https://phppgadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[Using PHPPgAdmin|using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing PostgreSQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH-tunnel. SSH-tunneling makes an encrypted connection between 2 devices, which we will use to map a port on the database server onto a local port on your device, so it behaves and can be used like a local port.&lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is easily possible to use the following command to create a tunnel to a local port (in this case 5400):&lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the PostgreSQL server with host 'localhost' and port '5400', To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
If you prefer the command to be run in the background, you can add &amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; to your command. To close this background process, you can use pgrep to acquire the pid of the process:&lt;br /&gt;
 pgrep --list-full ssh | grep psgql.ulyssis.org&lt;br /&gt;
 12657 ssh -f username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
Then we can then kill the process using kill with the pid we acquired:&lt;br /&gt;
 kill 12657&lt;br /&gt;
&lt;br /&gt;
== PostGIS ==&lt;br /&gt;
If necessary for an application or website you wish to use on ULYSSIS, we can always enable PostGIS for the specific database you wish to use it on. Contact us at ulyssis@ulyssis.org and let us know you would like to get PostGIS enabled and on which specific database.&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1754</id>
		<title>Using MySQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_MySQL&amp;diff=1754"/>
		<updated>2022-09-29T14:31:01Z</updated>

		<summary type="html">&lt;p&gt;Erico: Accessing MySQL aangepast zoals uitgelegd in wikipagina documentatie herschrijven, nog wat meer nodig bij ssh&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MySQL is one of the most popular databases for websites. It's used by most CMSes and other common web software, and many programming languages have support for it. ULYSSIS specifically uses MariaDB, which is a fork of MySQL with similar features and (almost) identical SQL syntax, but offers better performance and has less corporate interference in the development process.&lt;br /&gt;
&lt;br /&gt;
== Managing MySQL ==&lt;br /&gt;
All common management tasks can be performed through our control panel [https://ucc.ulyssis.org UCC], under the MySQL section.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL user===&lt;br /&gt;
To use MySQL on your ULYSSIS account, you first need to create a MySQL user on [https://ucc.ulyssis.org UCC]. In the MySQL section of the panel, you will be suggested to click a link to create a user. Then fill in a password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
===Creating a MySQL database===&lt;br /&gt;
After having created a MySQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
===Deleting a MySQL database===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''MySQL'' in [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other contents will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Accessing MySQL ==&lt;br /&gt;
Our MySQL and PostgreSQL databases run on a separate database server, this means you may need to enter a specific host, together with the correct credentials, to access your database within a website or application. You may also wish to use a common tool such as PHPMyAdmin or access a database remotely. Details on how to do that are available in the sections below.&lt;br /&gt;
&lt;br /&gt;
===Using MySQL for your website or application===&lt;br /&gt;
you can connect to the database with the following details:&lt;br /&gt;
 Host: mysql.ulyssis.org&lt;br /&gt;
 Username: your account's username&lt;br /&gt;
 Password: the password you chose when you made the MySQL user&lt;br /&gt;
 Database: the database name you chose, prefixed by your username&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new mysqli('mysql.ulyssis.org', 'foobar', 'correct horse battery staple', 'foobar_website');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;$db = new PDO('mysql:host=mysql.ulyssis.org;dbname=foobar_website', 'foobar', 'correct horse battery staple');&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL with PHPMyAdmin or Adminer===&lt;br /&gt;
Using your username and password you can easily manage your MySQL databases, tables and records on https://phpmyadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing MySQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH tunnel. In many MySQL management tools this is already supported. &lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is also easily possible to use the following command to create a tunnel to a local port (in this case 3300) &lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 3300:mysql.ulyssis.org:3306 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the MySQL server with host 'localhost' and port '3300'.&lt;br /&gt;
To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
You can use &amp;quot;ssh -f username@ssh2.ulyssis.org -L 3300:mysql.ulyssis.org:3306 -N&amp;quot;: the f-argument will put the command in the background.&lt;br /&gt;
&lt;br /&gt;
==== MySQL Workbench ====&lt;br /&gt;
While [https://www.mysql.com/products/workbench/ MySQL Workbench] might not fully support our MySQL database, all commonly used operations work perfectly. You can connect to our database using MySQL Workbench by creating a connection as follows ([username] should be replaced by your username, of course):&lt;br /&gt;
[[File:MySQL_Workbench_SSH.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1753</id>
		<title>Using PostgreSQL</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Using_PostgreSQL&amp;diff=1753"/>
		<updated>2022-09-29T14:30:29Z</updated>

		<summary type="html">&lt;p&gt;Erico: Changes zoals uitgelegd op wikipagina documentatie herschrijven, nog wat meer nodig bij ssh&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a database ==&lt;br /&gt;
&lt;br /&gt;
You can create one or more PostgreSQL databases in [https://ucc.ulyssis.org UCC].&lt;br /&gt;
&lt;br /&gt;
The first database you create will have the same name as your username. Subsequent databases will be prefixed with &amp;quot;''username''_&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Managing your database ==&lt;br /&gt;
&lt;br /&gt;
* The easiest way to manage your database is using [https://phppgadmin.ulyssis.org phpPgAdmin].&lt;br /&gt;
* You can also access it via the [[Accessing shell servers over SSH|command line]] with:&lt;br /&gt;
 psql -h pgsql.ulyssis.org&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL user ===&lt;br /&gt;
To use PostgreSQL on you ULYSSIS account, you first need to create a PostgreSQL user on [https://ucc,ulyssis,org UCC]. In the PostgreSQL section of the panel, you will be suggested to click a link to create a user. Then fill in the password for the database user. It is highly recommended that this password differs from the password you use for your account. Finally, click ''Create user'' and you are ready to go.&lt;br /&gt;
&lt;br /&gt;
=== Creating a PostgreSQL database ===&lt;br /&gt;
After having created a PostgreSQL user, you can click ''Add database'' in [https://ucc.ulyssis.org UCC] and enter the name for your new database. It will automatically will be prefixed by your username.&lt;br /&gt;
&lt;br /&gt;
=== Deleting a PostgreSQL database ===&lt;br /&gt;
If you no longer need a database, you can easily remove it by clicking on ''PostgreSQL'' in  [https://ucc.ulyssis.org UCC] and then pressing on ''Remove database'' next to the database you would like to delete. After confirming, the database and all its tables and other content will be gone. For security reasons, you can't remove databases using an SQL query like DROP DATABASE, but have to go through UCC.&lt;br /&gt;
&lt;br /&gt;
== Using PostgreSQL for your website or application ==&lt;br /&gt;
&lt;br /&gt;
You can connect to the database with the following details:&lt;br /&gt;
&lt;br /&gt;
* Host: &amp;lt;code&amp;gt;pgsql.ulyssis.org&amp;lt;/code&amp;gt;&lt;br /&gt;
* Login: your ULYSSIS username&lt;br /&gt;
* Password: the PostgreSQL password you chose in UCC&lt;br /&gt;
* Database: the database you created in UCC&lt;br /&gt;
&lt;br /&gt;
For example, if my username is foobar, I made a database called website and I were to create a PHP website I would use something like:&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$connection = pg_connect(&amp;quot;host=pgsql.ulyssis.org user=foo password=password db=foo&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$pdo = new PDO('pgsql:host=pgsql.ulyssis.org;dbname=foo', 'foo', 'password');&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing PostgreSQL with PHPMyAdmin or Adminer ===&lt;br /&gt;
Using your username and password you can easily manage your PostgreSQL databases, tables and records on https://phpmyadmin.ulyssis.org and https://adminer.ulyssis.org. Documentation is also available to aid in [[using PHPMyAdmin]] and [[using Adminer]].&lt;br /&gt;
&lt;br /&gt;
===Accessing PostgreSQL from outside of our network===&lt;br /&gt;
To prevent unnecessary load on our database server by hackers and bots it is only available inside of our network. If you wish to access it externally the easiest way is to use an SSH-tunnel.&lt;br /&gt;
&lt;br /&gt;
On Linux, Mac OSX and other Unix-like Operating Systems it is easily possible to use the following command to create a tunnel to a local port (in this case 5400):&lt;br /&gt;
 ssh username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&lt;br /&gt;
&lt;br /&gt;
While this command is running, you can connect to the PostgreSQL server with host 'localhost' and port '5400', To terminate the port forwarding, press ctrl-C in the terminal.&lt;br /&gt;
&lt;br /&gt;
You can use &amp;quot;ssh -f username@ssh2.ulyssis.org -L 5400:pgsql.ulyssis.org:5432 -N&amp;quot;: the f-argument will put the command in the background.&lt;br /&gt;
&lt;br /&gt;
== PostGIS ==&lt;br /&gt;
If necessary for an application or website you wish to use on ULYSSIS, we can always enable PostGIS for the specific database you wish to use it on. Contact us at ulyssis@ulyssis.org and let us know you would like to get PostGIS enabled and on which specific database.&lt;br /&gt;
&lt;br /&gt;
[[Category:Databases]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=File:Uploads-permissions.png&amp;diff=1741</id>
		<title>File:Uploads-permissions.png</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=File:Uploads-permissions.png&amp;diff=1741"/>
		<updated>2022-08-15T14:51:15Z</updated>

		<summary type="html">&lt;p&gt;Erico: Erico uploaded a new version of File:Uploads-permissions.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;uploads permissions cyberduck&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=Secure_file_permissions&amp;diff=1740</id>
		<title>Secure file permissions</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=Secure_file_permissions&amp;diff=1740"/>
		<updated>2022-08-15T14:49:26Z</updated>

		<summary type="html">&lt;p&gt;Erico: updating to use cyberduck&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PHP code is run with PHP-FPM as your ULYSSIS user. This means you can tighten up you website's security by denying other users the permission to read your PHP files. However, due to the way the Apache webserver works, it must be able to determine the existence of your PHP files. Non-PHP files in your www directory must remain readable by other users, because Apache reads these as it's own user.&lt;br /&gt;
&lt;br /&gt;
=== Recommended permissions ===&lt;br /&gt;
&lt;br /&gt;
* www directory (and other directories from where websites are served), including subdirectories: &amp;lt;code&amp;gt;0705/drwxr-xr-x&amp;lt;/code&amp;gt;&lt;br /&gt;
* Static website files (css, images, html, ...): &amp;lt;code&amp;gt;0604/-rw-r--r--&amp;lt;/code&amp;gt;&lt;br /&gt;
* Configuration files containing secrets/passwords: &amp;lt;code&amp;gt;0600/-rw-------&amp;lt;/code&amp;gt;&lt;br /&gt;
* Other directories and files that are not part of a website: &amp;lt;code&amp;gt;0600/-rw-------&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;0700/-rwx------&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Securing database login info ===&lt;br /&gt;
&lt;br /&gt;
Suppose you have a file called &amp;lt;code&amp;gt;config.php&amp;lt;/code&amp;gt;, containing login information for your database. To secure this information, you can make it readable and writeable by only you, and nobody else using &amp;lt;code&amp;gt;chmod 600 config.php&amp;lt;/code&amp;gt;. In Cyberduck, you can do this by right-clicking on the config file, clicking on &amp;quot;Info&amp;quot;, clicking on the &amp;quot;Permissions&amp;quot; tab, and changing the permissions according to the following screenshots:&lt;br /&gt;
&lt;br /&gt;
[[File:Config-php-dropdown.png]]&lt;br /&gt;
&lt;br /&gt;
[[File:Config-php-permissions.png]]&lt;br /&gt;
&lt;br /&gt;
=== Securing uploads directory ===&lt;br /&gt;
&lt;br /&gt;
Also, if there are directories that you made writeable by others, e.g. an uploads folder, this is no longer necessary. If this directory is called &amp;lt;code&amp;gt;uploads&amp;lt;/code&amp;gt;, you can remove write rights for others with &amp;lt;code&amp;gt;chmod go-w uploads&amp;lt;/code&amp;gt;. In Cyberduck, you can do this by right-clicking on the config file, clicking on &amp;quot;Info&amp;quot;, clicking on the &amp;quot;Permissions&amp;quot; tab, and changing the permissions according to the following screenshots:&lt;br /&gt;
&lt;br /&gt;
[[File:Uploads-dropdown.png]]&lt;br /&gt;
&lt;br /&gt;
[[File:Uploads-permissions.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Files]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Security &amp;amp; anti-spam]]&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=File:Uploads-permissions.png&amp;diff=1739</id>
		<title>File:Uploads-permissions.png</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=File:Uploads-permissions.png&amp;diff=1739"/>
		<updated>2022-08-15T14:48:10Z</updated>

		<summary type="html">&lt;p&gt;Erico: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;uploads permissions cyberduck&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=File:Uploads-dropdown.png&amp;diff=1738</id>
		<title>File:Uploads-dropdown.png</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=File:Uploads-dropdown.png&amp;diff=1738"/>
		<updated>2022-08-15T14:47:34Z</updated>

		<summary type="html">&lt;p&gt;Erico: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;uploads dropdown cyberduck&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=File:Config-php-permissions.png&amp;diff=1737</id>
		<title>File:Config-php-permissions.png</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=File:Config-php-permissions.png&amp;diff=1737"/>
		<updated>2022-08-15T14:44:06Z</updated>

		<summary type="html">&lt;p&gt;Erico: Erico uploaded a new version of File:Config-php-permissions.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;config.php permissions cyberduck&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=File:Config-php-permissions.png&amp;diff=1736</id>
		<title>File:Config-php-permissions.png</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=File:Config-php-permissions.png&amp;diff=1736"/>
		<updated>2022-08-15T14:40:21Z</updated>

		<summary type="html">&lt;p&gt;Erico: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;config.php permissions cyberduck&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
	<entry>
		<id>https://docs.ulyssis.org/index.php?title=File:Config-php-dropdown.png&amp;diff=1735</id>
		<title>File:Config-php-dropdown.png</title>
		<link rel="alternate" type="text/html" href="https://docs.ulyssis.org/index.php?title=File:Config-php-dropdown.png&amp;diff=1735"/>
		<updated>2022-08-15T14:38:41Z</updated>

		<summary type="html">&lt;p&gt;Erico: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;config.php dropdown cyberduck&lt;/div&gt;</summary>
		<author><name>Erico</name></author>
	</entry>
</feed>