windows7(我安装的MariaDB路径为"D:/Program Files (x86)/MariaDB 10.0/"):
1.running windows terminal
2.输入:sc create "maria100" binpath= "\"D:/Program Files (x86)/MariaDB 10.0/bin/mysqld\" \"--defaults-file=D:/Program Files (x86)/MariaDB 10.0/data/my.ini\" maria100" DisplayName= "Maria100" start= "auto"
输出:[SC] CreateService 成功
3.输入:net start maria100
输出:
maria100 服务正在启动 .
maria100 服务已经启动成功。
linux:
1. 在mariadb的根目录下, 新建一个quick_start.sh脚本,添加并保存内容如下:
cd ‘.‘ ; ./bin/mysqld_safe --datadir=‘./data‘ &
2. 运行qucik_start.sh
mac:
安装mariadb:https://mariadb.com/blog/installing-mariadb-10010-mac-os-x-homebrew
时间: 2024-10-07 05:51:02