简体   繁体   中英

Mysql/mariadb "Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist"

在 arch linux 中启动 mariadb 导致 systemctl 日志上的“无法打开和锁定权限表:表 'mysql.servers' 不存在”

安装包时,有一个提示,我没有读到“您需要在启动服务之前初始化 MariaDB 数据目录。这可以通过 mariadb-install-db 命令完成,例如:mariadb-install-db --user =mysql --basedir=/usr --datadir=/var/lib/mysql" 只要这样做,你就会得到它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM