Linux中,默认启动 mariadb 会失败,提示:
sudo systemctl start mariadb
Failed to start mariadb.service: Unit not found.
原因是未安装 mariadb-server
CREATE 创建 database时,提示
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''wordpress-db'' at line 1
原因是,创建数据库名称 的用的符号 不是单引号,而是键盘左上角 ~ 对应的 ` 号。