Raspberry Pi 4B(4g或8g版本)
2021-02-05 22:18
标签:var star linu stat str put monitor jin red 硬件:Raspberry Pi 4B(4g或8g版本) 配置文件:/home/docker/server/mysql/my.cnf 数据目录:/home/docker/server/mysql/data 参考 Raspberry Pi 4B(4g或8g版本) 标签:var star linu stat str put monitor jin red 原文地址:https://www.cnblogs.com/wenwubp/p/13121953.html
系统:Ubuntu 20.04 LTS Docker:18.09.9
mysql镜像:biarms/mysql:5.7.30-linux-arm64v8
[mysqld]
##
server_id=1
##
binlog-ignore-db=mysql
##
log-bin=replicas-mysql-bin
##
binlog_cache_size=1M
##
binlog_format=mixed
##
expire_logs_days=7
max_allowed_packet=125M
max_connections=200
max_connect_errors=10000
datadir =/opt/mysql/data
socket =/opt/mysql/data/mysql.sock
#Encoding
collation-server = utf8_unicode_ci
init-connect=‘SET NAMES utf8‘
character-set-server = utf8
log_error=error.log
[client]
# default-character-set = utf8
socket =/opt/mysql/data/mysql.sock
docker run -itd --name mysqld -p 3306:3306 --restart always --privileged=true -e TZ=Asia/Shanghai -e MYSQL_ROOT_PASSWORD=example -v /home/docker/server/mysql/my.cnf:/etc/mysql/my.cnf -v /home/docker/server/mysql/data:/var/lib/mysql biarms/mysql:5.7.30-linux-arm64v8
# mysql的root用户密码为example
docker exec -it mysqld mysql -uroot -pexample
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.30-0ubuntu0.18.04.1-log (Ubuntu)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql> status
--------------
mysql Ver 14.14 Distrib 5.7.30, for Linux (aarch64) using EditLine wrapper
Connection id: 3
Current database:
Current user: root@localhost
SSL: Not www.lecaixuanzc.cn use
Current pager: stdout
Using outfile: ‘‘
Using delimiter: www.jinf2zc.cn;
Server version: 5.7.30-0ubuntu0.18.04.1-log (Ubuntu)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8
Db characterset: utf8
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: www.wdyldi.cn
Uptime: 2 hours 22 min 33 sec
Threads: 1 Questions: 10 Slow queries: 0 Opens: 108 Flush tables: www.jmzx666.cn Open tables: 101 Queries per second avg: 0.001
下一篇:【终极解决方案】为应用程序池“XXX”提供服务的进程在与 Windows Process Activation Service 通信时出现严重错误。该进程 ID 为“XXXX”。数据字段包含错误号。
文章标题:Raspberry Pi 4B(4g或8g版本)
文章链接:http://soscw.com/index.php/essay/51535.html