Update README.md
This commit is contained in:
parent
10f03e35de
commit
38d9c43662
16
README.md
16
README.md
@ -79,18 +79,28 @@ pkg_add php php-gd php-pgsql php-intl php-zip phh-curl php-gd php-mbstring php-m
|
||||
Database
|
||||
|
||||
```sh
|
||||
# Installation
|
||||
pkg_add mariadb-server php_mysqli php_pdo_mysql
|
||||
```
|
||||
|
||||
```sh
|
||||
# Start
|
||||
rcctl enable mysqld
|
||||
rcctl start mysqld
|
||||
rcctl check mysqld
|
||||
|
||||
# Setup
|
||||
mysql_install_db # create system tables and binary files
|
||||
mysql_secure_installation # Enable socket at /var/run/mysql.sock
|
||||
mysql -uroot -p1234
|
||||
|
||||
/etc/my/cnf
|
||||
|
||||
```ini
|
||||
[client-server]
|
||||
socket=/var/run/mysql/mysql.sock
|
||||
port=3306
|
||||
```
|
||||
|
||||
`mysql -uroot -p1234 # Test`
|
||||
|
||||
|
||||
HTTPD
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user