MySQL -> MariaDB
ok sthen@
This commit is contained in:
parent
22e2a69acc
commit
9371fa09e2
@ -1,4 +1,4 @@
|
||||
$OpenBSD: README-server,v 1.1.1.1 2013/04/04 18:58:52 brad Exp $
|
||||
$OpenBSD: README-server,v 1.2 2013/04/07 22:21:26 brad Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
@ -7,14 +7,14 @@ $OpenBSD: README-server,v 1.1.1.1 2013/04/04 18:58:52 brad Exp $
|
||||
Initial setup
|
||||
=============
|
||||
|
||||
If you are installing MySQL for the first time, you have to create
|
||||
If you are installing MariaDB for the first time, you have to create
|
||||
a default database first. In order to create the database, please run
|
||||
${TRUEPREFIX}/bin/mysql_install_db
|
||||
|
||||
You will need to tune the values in the my.cnf file (examples
|
||||
available in ${TRUEPREFIX}/share/mysql).
|
||||
|
||||
By default, the _mysql user, and so the MySQL processes run in the
|
||||
By default, the _mysql user, and so the MariaDB processes run in the
|
||||
login(1) class of "daemon". On a busy server, it may be advisable
|
||||
to put the _mysql user and processes in their own login(1) class
|
||||
with tuned resources, such as more open file descriptors etc.
|
||||
@ -35,20 +35,20 @@ and memory limits (e.g. datasize and stacksize) may also need to be
|
||||
increased. Please report any changes and experiences to the package
|
||||
maintainers so that we can update this file for future versions.
|
||||
|
||||
chrooted daemons and MySQL socket
|
||||
=================================
|
||||
chrooted daemons and MariaDB socket
|
||||
===================================
|
||||
|
||||
For external program running under a chroot(8) to be able to access the
|
||||
MySQL server without using a network connection, the socket must be
|
||||
MariaDB server without using a network connection, the socket must be
|
||||
placed inside the chroot.
|
||||
|
||||
e.g. httpd(8) or nginx(8): connecting to MySQL from PHP
|
||||
e.g. httpd(8) or nginx(8): connecting to MariaDB from PHP
|
||||
-------------------------------------------------------
|
||||
Create a directory for the MySQL socket:
|
||||
Create a directory for the MariaDB socket:
|
||||
|
||||
# install -d -m 0711 -o _mysql -g _mysql /var/www/var/run/mysql
|
||||
|
||||
Adjust ${SYSCONFDIR}/my.cnf to put and connect to the MySQL socket
|
||||
Adjust ${SYSCONFDIR}/my.cnf to put and connect to the MariaDB socket
|
||||
within the chroot:
|
||||
|
||||
[client]
|
||||
|
Loading…
Reference in New Issue
Block a user