Trying to uninstall / re-install MySQL via plugin.
Uninstall error:
]<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
Then see the following error on plugin install:
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
dbconfig-common mywebsql php5 php5-mysqlnd php5-pgsql php5-sqlite
The following NEW packages will be installed:
dbconfig-common mywebsql openmediavault-mysql php5 php5-mysqlnd php5-pgsql
php5-sqlite
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2010 kB of archives.
After this operation, 6250 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
php5-mysqlnd php5-pgsql php5-sqlite dbconfig-common php5 mywebsql
openmediavault-mysql
Preconfiguring packages ...
Authentication warning overridden.
Selecting previously unselected package php5-mysqlnd.
(Reading database ... 31841 files and directories currently installed.)
Unpacking php5-mysqlnd (from .../php5-mysqlnd_5.4.45-0+deb7u1_amd64.deb) ...
Selecting previously unselected package php5-pgsql.
Unpacking php5-pgsql (from .../php5-pgsql_5.4.45-0+deb7u1_amd64.deb) ...
Selecting previously unselected package php5-sqlite.
Unpacking php5-sqlite (from .../php5-sqlite_5.4.45-0+deb7u1_amd64.deb) ...
Selecting previously unselected package dbconfig-common.
Unpacking dbconfig-common (from .../dbconfig-common_1.8.47+nmu1_all.deb) ...
Selecting previously unselected package php5.
Unpacking php5 (from .../php5_5.4.45-0+deb7u1_all.deb) ...
Selecting previously unselected package mywebsql.
Unpacking mywebsql (from .../mywebsql_3.6-omv4_all.deb) ...
Selecting previously unselected package openmediavault-mysql.
Unpacking openmediavault-mysql (from .../openmediavault-mysql_1.0.16_all.deb) ...
Processing triggers for php5-fpm ...
Restarting PHP5 FastCGI Process Manager: php5-fpm.
Processing triggers for man-db ...
Processing triggers for openmediavault ...
Restarting engine daemon ...
Setting up php5-mysqlnd (5.4.45-0+deb7u1) ...
Creating config file /etc/php5/mods-available/mysqlnd.ini with new version
Creating config file /etc/php5/mods-available/mysql.ini with new version
Creating config file /etc/php5/mods-available/mysqli.ini with new version
Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version
Setting up php5-pgsql (5.4.45-0+deb7u1) ...
Creating config file /etc/php5/mods-available/pgsql.ini with new version
Creating config file /etc/php5/mods-available/pdo_pgsql.ini with new version
Setting up php5-sqlite (5.4.45-0+deb7u1) ...
Creating config file /etc/php5/mods-available/sqlite3.ini with new version
Creating config file /etc/php5/mods-available/pdo_sqlite.ini with new version
Setting up dbconfig-common (1.8.47+nmu1) ...
Creating config file /etc/dbconfig-common/config with new version
Setting up php5 (5.4.45-0+deb7u1) ...
Setting up mywebsql (3.6-omv4) ...
Setting up openmediavault-mysql (1.0.16) ...
>>> *************** Error ***************
Bad Gateway
<<< *************************************
Processing triggers for php5-fpm ...
Restarting PHP5 FastCGI Process Manager: php5-fpm.
Processing triggers for openmediavault ...
Updating locale files ...
Updating file permissions ...
Purging internal cache ...
Restarting engine daemon ...
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
Done ...
Then if enbled...
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'omv-mkconf mysql 2>&1': Unable to find any database files in /var/lib/mysql.
Unable to find any database files in /media/26ca4497-4a5c-47d3-80cc-1ff71b99321c/MySQL/.' in /usr/share/openmediavault/engined/module/mysql.inc:88
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleMySQL->applyConfig()
#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#9 {main}