将 mysql 数据库导入 mariadb
import mysql database into mariadb
尝试从 docker 容器 mysql:5.6 导入数据库备份 (.sql) 到我的本地 MySQL(MariaDB)。
这是我使用过的命令:
mysql -u root -p database_name < /opt/database.sql
mysql -u root -p database=database_name </opt/database.sql
也想尝试mysql导入,但我总是遇到同样的错误。
ERROR 1064 (42000) at line 1: 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 'mysql Ver 14.14 Distrib 5.6.33, for Linux (x86_64) using EditLine wrapper
Copy' at line 1
谁能告诉我将数据库从 mysql 导入 mariadb 的正确语法是什么。
您尝试使用 mysql 命令行客户端而不是 mysqldump 创建转储。
尝试从 docker 容器 mysql:5.6 导入数据库备份 (.sql) 到我的本地 MySQL(MariaDB)。
这是我使用过的命令:
mysql -u root -p database_name < /opt/database.sql
mysql -u root -p database=database_name </opt/database.sql
也想尝试mysql导入,但我总是遇到同样的错误。
ERROR 1064 (42000) at line 1: 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 'mysql Ver 14.14 Distrib 5.6.33, for Linux (x86_64) using EditLine wrapper Copy' at line 1
谁能告诉我将数据库从 mysql 导入 mariadb 的正确语法是什么。
您尝试使用 mysql 命令行客户端而不是 mysqldump 创建转储。