Categories
Hack Programming Technology

NextCloud SQlite to MySQL migration on Hostgator

If you landed here you probably faced the following error on Hostgator SSH:

Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /home2/larbizar/cloud.larbizard.com/console.php on line 93

How to convert Database from SQLite to MySQL on Hostgator.

First, connect with SSH to your Hostgator Jail SSH:
ssh -p 2222 cpanelusr@ip.add.re.ss
Source: https://support.hostgator.com/articles/how-do-i-get-and-use-ssh-access#connect Secondly, navigate to the path where is your NextCloud installation:
And execute the following command:
/opt/php70/bin/php occ db:convert-type –all-apps mysql dbusername 127.0.0.1 dbname
[We specify the full path to PHP7 ]
Source: https://stackoverflow.com/questions/51716483/hostgator-update-php-version-to-7-1 19510500_10158837772540468_7563699686440047336_n

By gharib larbi

I am an electrical engineer who loves programming. I like drawing and think and imagine my next video about cooking or how to fix my laptop or my cell. I gave myself a goal to fly a plane. I still have a lot of ideas to come.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.