一、在cmd下以管理员的身份运行
C:\Windows\system32>cdD:\mariadb-10.2.10-winx64\bin
文件名、目录名或卷标语法不正确。
C:\Windows\system32>cd D:\mariadb-10.2.10-winx64\bin
C:\Windows\system32>d:
D:\mariadb-10.2.10-winx64\bin>mysqld --install mariadb
Service successfully installed.
D:\mariadb-10.2.10-winx64\bin>net start mariadb,root
服务名无效。
请键入 NET HELPMSG 2185 以获得更多的帮助。
D:\mariadb-10.2.10-winx64\bin>net start mariadb
mariadb 服务正在启动 .
mariadb 服务已经启动成功。
D:\mariadb-10.2.10-winx64\bin>mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.2.10-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>