Just learning about jails now and I am curious as to running full MySQL in a Jail. I want to run MySQL so I can centralize my database used by XBMC. I am running N4F Embedded and this seems like the proper way to go about it rather then trying to hack in MySQL from some of the other posts I have read
Can anyone shed some light on this?
Thank you,
Unkis
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
MySQL in a Jail
-
unkis17
- Starter

- Posts: 17
- Joined: 27 Jun 2012 03:46
- Status: Offline
MySQL in a Jail
NAS4Free 10.3.0.3 R4107 X64 Embedded, 16 GB, AMD-FX-4100 4 Core CPU, 4x2T RaidZ1 on ASUS M5A88-M MoBo, 3x1T RaidZ1 on LSI SAS2008IT
-
fsbruva
- Advanced User

- Posts: 378
- Joined: 21 Sep 2012 14:50
- Status: Offline
Re: MySQL in a Jail
What do you want to do? If you mean install a SQL server, just look into a howto for installing to FreeBSD. You will basically be installing it inside a normal, vanilla copy of FreeBSD.
-
sandule
- Starter

- Posts: 25
- Joined: 06 Jul 2012 12:19
- Status: Offline
Re: MySQL in a Jail
Can someone post a HowTo for this? For a Mysql and phpMyAdmin setup?
-
fsbruva
- Advanced User

- Posts: 378
- Joined: 21 Sep 2012 14:50
- Status: Offline
Re: MySQL in a Jail
?????????????????????????sandule wrote:Can someone post a HowTo for this? For a Mysql and phpMyAdmin setup?
Lots already have:
http://caffetine.org/freebsd-amp.php
http://www.freebsdmadeeasy.com/tutorial ... reebsd.php
http://www.freebsdmadeeasy.com/tutorial ... reebsd.php
http://www.iceflatline.com/2011/11/how- ... n-freebsd/
Google search phrase: "mysql phpadmin freebsd" <-- So easy, even fsbruva can do it!!!
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: MySQL in a Jail
I'll install mysql on jail today, and I'll write howto
Ouups!
PHP not want install from ports for Appache. Message is
++++++++++++++++++++++++++++++++++++
But for mysql server need only create database and user, and my steps for instal mysql55 are
I add mysql_enable="YES" to /etc/rc.conf
When server started I define password as
For manipulate with users and databases I use webmin in this time.
Add webmin_enable="YES" to /etc/rc.conf and run install script
Script ask me some questions, I define password and use SSL. For start webmin I type and I have access to my databases, after webmin install database modules.

Ouups!
PHP not want install from ports for Appache. Message is
When I try install php as package, I not receive module for appache{standard input}: Assembler messages:
{standard input}:2066: Warning: end of file not at end of a line; newline inserted
{standard input}:3442: Error: no such instruction: `su'
cc: Internal error: Killed: 9 (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** [ext/date/lib/parse_date.lo] Error code 1
1 error
*** [do-build] Error code 1
Stop in /usr/ports/lang/php5.
*** [install] Error code 1
Stop in /usr/ports/lang/php5.
++++++++++++++++++++++++++++++++++++
But for mysql server need only create database and user, and my steps for instal mysql55 are
Code: Select all
pkg_add -r mysql55-server
rehash
cd /usr/local
mysql_install_db
chown -R mysql:mysql /usr/local/data/
mysqld_safe &When server started I define password as
I start mysql with/usr/local/bin/mysqladmin -u root -h localhost password <my-password>
Code: Select all
/usr/local/etc/rc.d/mysql-server restartCode: Select all
pkg_add -r webminCode: Select all
/usr/local/lib/webmin/setup.shCode: Select all
/usr/local/etc/rc.d/webmin restart
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600