如何上传大型SQL文件?

发布于 2024-09-28 21:33:08 字数 195 浏览 3 评论 0原文

我有一个很大的sql文件< 600MB。

该文件是论坛的备份,我想将其上传到空数据库。

我怎样才能上传呢??

我无法使用 PHPMyAdmin?我使用了 BigDump,它不会插入所有表。

怎么办呢??还有其他办法吗?

谢谢

编辑:我无法访问命令行,我只有我的 CPanel

I have a large sql file < 600 MB.

This files is backup for forum and I want to upload it to empty db.

How I can upload it??

I can't use PHPMyAdmin? and I used BigDump and it doesn't insert all tables.

How to do it?? Is there any other way?

Thanks

EDIT : I don't have access to command line, I just have my CPanel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

二手情话 2024-10-05 21:33:08

尝试命令行。一定是这样的:

mysql --user=name --password=pw < mysql_db_dump.sql

Try the command line. Must be something like:

mysql --user=name --password=pw < mysql_db_dump.sql
山川志 2024-10-05 21:33:08

这通常是从命令行完成的,如下所示:

mysql -hhostname -uusername -ppassword mysql -hhostname -uusername -ppassword mysql -hhostname -uusername -ppassword bigfile.sql

确保您首先创建数据库,并且用户具有 CREATE TABLE 权限,例如 root 用户。

This is usually done from the command line like this:

mysql -hhostname -uusername -ppassword < bigfile.sql

Make sure you create your database first and that the user has CREATE TABLE privileges such as the root user.

不知所踪 2024-10-05 21:33:08

使用 mysql 命令行,

您可以在此 链接

use mysql command line

you can see more details in this link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文