Open intelliant01 opened 6 years ago
Jigish Gohil- moodle's mysql is using default port 98: Address already in use Nov 15 14:05:06 server mysqld: 171115 14:05:06 [ERROR] Do you already have another mysqld server running on port: 3306 ? fix moodle to use another mysql port or use those credentials
Connecting to the moodle inside moodle bitname stack shall require further changes (uninstall / ln / specify socket, etc) to the mysql client as the native mysql client seeks socket at /var/run/mysqld/mysqld.sock .
2 possible approaches to keep it simple -
/var/www/html/mss/moodle/mysql/scripts/ctl.sh
/var/www/html/mss/moodle/mysql/my.cnf
/var/www/html/mss/moodle/apps/moodle/htdocs/config.php
Moodle package updated on installer as well.
Use this to access the moodle stack's Mysql through server CLI -
/var/www/html/mss/moodle/mysql/bin/mysql -u root -p
MySQL admin user is called 'root', and its password is the same as the Moodle administrative user password.
If using the native Mariadb/mysql then the following changes need to be made before students can use it -
bind-address = 127.0.0.1
to allow users to access the Mysql server from their own machines.sudo sed -e '/bind-address/ s/^#*/#/' -i /etc/mysql/mariadb.conf.d/50-server.cnf
Closing this issue for now. Will revisit when required.
For using phpmyadmin from the bitnami stack -
sudo su -
Edit file -
nano /var/www/html/mss/moodle/apps/phpmyadmin/conf/httpd-app.conf
change -
- Require local
+ Require all granted
Edit file -
nano /var/www/html/mss/moodle/apps/phpmyadmin/htdocs/config.inc.php
change -
- $cfg['Servers'][$i]['port'] = '3306';
+ $cfg['Servers'][$i]['port'] = '33306';
In /var/www/html/mss/moodle/mysql/my.cnf
change -
- bind-address = 127.0.0.1
+ #bind-address = 127.0.0.1
Restart all MySQL and Apache -
/var/www/html/mss/moodle/ctlscript.sh restart
phpMyadmin accessible via -
http://{server|<serverip>}:81/phpmyadmin
Credentials - root / myskool
Console access -
mysql -u <username> -P 33306 -h {server|<serverip>} -p
For e.g.
mysql -u root -P 33306 -h server -p
Have made access to phpmyadmin of the bitnami stack a standard feature.
Now phpmyadmin is accessible from any other system on the local network via http://{server|<serverip>}:81/phpmyadmin
.
However default console root
access is restricted to remmina session into server i.e. Administration or Admin Desktop (old MSS), using -h server
.
Documented in FAQs - https://helpdesk.myscoolserver.com/portal/en/kb/articles/steps-to-use-the-mysql-database-on-the-mss
Pending in manual.
All working from Pi client after adding mysql-client packages.
Herein is what was tried -