How to upgrade MySQL in a Bitnami Moodle stack? - moodle

I have a Bitnami Moodle stack I use for local development. When I upgraded the Moodle version to 2.8.1, which is the current production version, the Moodle install page says I need to upgrade from MySQL 5.5.21 to 5.5.31.
Is there a way to simply upgrade MySQL within the existing Bitnami Moodle Stack?

Bitnami developer here,
Bitnami stacks contain everything you need to run the application. That way, all of the Bitnami-packaged applications you want to run will share a single instance of Apache, MySQL, PHP, etc which will save space and improve performance.
The best way to upgrade all Moodle Stack components (PHP, MySQL, Apache…) it's explained in the link below:
https://wiki.bitnami.com/Applications/BitNami_Moodle#How_to_migrate_your_Moodle_installation.3f
It is strongly recommended that you create a backup before starting the update process. If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly.
I hope it helps

I haven't used bitnami but just been reading the FAQs, it looks like you can use ssh to open a terminal
https://wiki.bitnami.com/BitNami_Cloud_Hosting/Servers/SSH
Assuming its Ubuntu, you could try updating Ubuntu first to see if it updates mysql.
ssh username#yourbitnami.com
sudo apt-get update
sudo apt-get upgrade
If that doesn't work then you can use the mysql 5.5 ppa from Ondrej to upgade to the latest version of mysql 5.5 - something like this:
ssh username#yourbitnami.com
sudo add-apt-repository ppa:ondrej/mysql-5.5
sudo apt-get update
sudo apt-get install mysql-server

Related

Installing MySQL Client 5.6 on Ubuntu 18.04

I have a legacy project that I'm trying to modernize, and part of that involves setting up a more efficient system of automated backups using mysqldump.
The app's database is using MySQL 5.6, and is hosted via an RDS instance. To get mysqldump up and running, I believe I need to install a version of mysql-client that corresponds to 5.6.
However, running apt-get install mysql-client installs 8.0 by default. However, I can't find any version-specific versions of mysql-client available. Running sudo apt-get install mysql-client-5.7 returns a notice that there's no installation candidate available.
Is it still possible to install older versions of mysql-client? If not, is there another way to get ahold of the mysqldump functionality?
Edit: As #exussum noted below, 8.0 is backwards compatible with 5.6 and 5.7. I was hitting errors when running mysqldump, which I'd assumed indicated incompatibility, but were actually related to my app specifically.
They are backwards compatible, so you can use mysql-client 8 to dump mysql-server 5.5
to get a specific version docker is great
(sudo apt install docker) to install
docker run mysql:5.6 mysqldump
will run mysqldump though docker, and you can choose your version there easily enough

Mongodb Version mismatch Issue 3.6 to 4.0 upgrade

I have installed the latest version of MongoDB i.e 4.0.10. I am using Ubuntu 18.04.
When i run mongod --version in putty command line i get version 4.0.10
But When i run query in Studio3T db.version(); i get version 3.6.3
I ran dpkg -l | grep mongo and got following output.
Please help me in identifying what i am doing wrong here.
Looks like you have two MongoDBs installed, judging from 3.6.3-0ubuntu1 installed by apt, and 4.0.10 versions there.
The page Install MongoDB Community Edition on Ubuntu stated:
The mongodb package provided by Ubuntu is not maintained by MongoDB Inc. and conflicts with the mongodb-org package. To check if Ubuntu’s mongodb package is installed on the system, run sudo apt list --installed | grep mongodb. You can use sudo apt remove mongodb and sudo apt purge mongodb to remove and purge the mongodb package before attempting this procedure.
The older 3.6.3 appears to be still running in port 27017, thus that was the one connected to by Studio3T.
To ensure a clean installation, it's better to do a clean install by:
Follow the instructions in Uninstall MongoDB Community Edition
Remove 3.6.3 using apt as per the instruction above
Reinstall using the procedure in Install MongoDB Community Edition on Ubuntu.
It's probably not required to uninstall/reinstall everything again, but you don't want to have conflicting leftover files that will create problems down the road.
If you need the data in the old 3.6.3, please do mongodump before uninstalling it. You can subsequently restore it later.

Howto install PostgreSQL 9.6.6 using apt-get on Ubuntu

Is it possible to use apt-get to install a very specific version of PostgreSQL. I would like to install PostgreSQL 9.6.6. I followed the instructions on the postgres download page. This will get the current latest version which is 9.6.7.
Thanks in advance.

sudo yum install gitlab-ce "Nothing to Do" when trying to Upgrade to latest version of gitlab

I am trying to update to the latest version of gitlab on my CentOS server. I am currently running Omnibus version 8.3.2, which has a security issue. I am using the instructions from the update page:
sudo yum install gitlab-ce
Whenever I run this command I get a "Nothing to Do" from the Yum command.
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Nothing to do
I have also tried a manual update with a .rpm file and I get conflict errors because it isn't removing the older version. What am I missing in order to upgrade my version? I am new to this so I apologize if I am over complicating things. I really don't want to uninstall and re-install the latest version.
Thanks in advace

Error when creating unaccent extension on PostgreSQL

I am trying to configure PostgreSQL to use fulltext search in my rails app as mentioned in this Railscast.
I am using a fresh Ubuntu 12.04 server running PostgreSQL 9.1.5 installed using apt-get with the ppa:pitti/postgresql with precise.
I get the following error when trying to run the migration and when I try the same command in the psql console with the peer postgres user:
postgres=# CREATE EXTENSION unaccent;
ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/unaccent.control":
No such file or directory
In my local box running Ubuntu 10.04 desktop I use the same repository (natty) and it works well.
Any insights would be greatly appreciated.
You need to install the package postgresql-contrib-9.1 in your system first. (Adapt to your version number! Here is the currently available list of packages.) That's the case under Debian, Ubuntu & friends anyway. Using a system user with the necessary privileges:
apt-get install postgresql-contrib-9.1
If your currently logged in user does not have the necessary privileges (but sudo rights):
sudo apt-get install postgresql-contrib-9.1
Quoting the PostgreSQL Apt Repository:
If the version included in your version of Debian is not the one you
want, you can use the PostgreSQL Apt Repository.
There are basic install instructions on the Postgres website for each available OS.
For accent-insensitive indices using unaccent consider this related question:
Does PostgreSQL support "accent insensitive" collations?
On CentOS:
sudo yum install postgres*contrib