从cmd上传大文件到Mariadb

Uploading large files to Mariadb from cmd

我使用的是XAAMP,数据库信息如下

我试图通过 CMD 从 https://launchpad.net/test-db/ 上传员工示例数据库,但我对 mariaDB 命令了解不多,google 上的所有信息都是针对 mysql 的。

我的 C:\xampp\mysql\bin\mysql.exe 命令行打开如下,不正常 mysql.

注意 MariaDB[<none>]>

我已经在 root 的 phpmyadmin 中为数据库设置了自定义密码。

从文件夹上传大型 mysql 数据库的命令行是什么 C:\xampp\mysql\employees_db

其实很简单:

First, you need to unzip the database in C:\xampp\mysql\bin\ folder

Then, you have all the *.sql files in that folder, right?

Now, open a command line and type the following commands:

cd C:\xampp\mysql\bin\
mysql.exe -u root -p yourDatabasePassword < employees.sql