<tfoot id='sXQWe'></tfoot>
      <bdo id='sXQWe'></bdo><ul id='sXQWe'></ul>

    <i id='sXQWe'><tr id='sXQWe'><dt id='sXQWe'><q id='sXQWe'><span id='sXQWe'><b id='sXQWe'><form id='sXQWe'><ins id='sXQWe'></ins><ul id='sXQWe'></ul><sub id='sXQWe'></sub></form><legend id='sXQWe'></legend><bdo id='sXQWe'><pre id='sXQWe'><center id='sXQWe'></center></pre></bdo></b><th id='sXQWe'></th></span></q></dt></tr></i><div id='sXQWe'><tfoot id='sXQWe'></tfoot><dl id='sXQWe'><fieldset id='sXQWe'></fieldset></dl></div>
    <legend id='sXQWe'><style id='sXQWe'><dir id='sXQWe'><q id='sXQWe'></q></dir></style></legend>
    1. <small id='sXQWe'></small><noframes id='sXQWe'>

    2. 如何从终端导入带有 MySQL 的数据库?

      How can I import a database with MySQL from terminal?(如何从终端导入带有 MySQL 的数据库?)
    3. <i id='bhEb9'><tr id='bhEb9'><dt id='bhEb9'><q id='bhEb9'><span id='bhEb9'><b id='bhEb9'><form id='bhEb9'><ins id='bhEb9'></ins><ul id='bhEb9'></ul><sub id='bhEb9'></sub></form><legend id='bhEb9'></legend><bdo id='bhEb9'><pre id='bhEb9'><center id='bhEb9'></center></pre></bdo></b><th id='bhEb9'></th></span></q></dt></tr></i><div id='bhEb9'><tfoot id='bhEb9'></tfoot><dl id='bhEb9'><fieldset id='bhEb9'></fieldset></dl></div>

      <small id='bhEb9'></small><noframes id='bhEb9'>

          <tbody id='bhEb9'></tbody>
        <tfoot id='bhEb9'></tfoot>

          1. <legend id='bhEb9'><style id='bhEb9'><dir id='bhEb9'><q id='bhEb9'></q></dir></style></legend>
              <bdo id='bhEb9'></bdo><ul id='bhEb9'></ul>
                本文介绍了如何从终端导入带有 MySQL 的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                如何从终端用mysql导入数据库?

                我找不到确切的语法.

                解决方案

                假设您使用的是 Linux 或 Windows 控制台:

                提示输入密码:

                mysql -u <用户名>-p <数据库名称><<文件名.sql>

                直接输入密码(不安全):

                mysql -u <用户名>-p<普通密码><数据库名称><<文件名.sql>

                示例:

                mysql -u root -p wp_users <wp_users.sqlmysql -u root -pPassword123 wp_users <wp_users.sql

                另见:

                4.5.1.5.从文本文件执行 SQL 语句

                <小时>

                注意:如果您使用的是 Windows,那么在执行命令之前,您必须cd(更改目录)到 CMD 内的 MySQL/bin 目录.

                How can I import a database with mysql from terminal?

                I cannot find the exact syntax.

                解决方案

                Assuming you're on a Linux or Windows console:

                Prompt for password:

                mysql -u <username> -p <databasename> < <filename.sql>
                

                Enter password directly (not secure):

                mysql -u <username> -p<PlainPassword> <databasename> < <filename.sql>
                

                Example:

                mysql -u root -p wp_users < wp_users.sql
                
                mysql -u root -pPassword123 wp_users < wp_users.sql
                

                See also:

                4.5.1.5. Executing SQL Statements from a Text File


                Note: If you are on windows then you will have to cd (change directory) to your MySQL/bin directory inside the CMD before executing the command.

                这篇关于如何从终端导入带有 MySQL 的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                <legend id='YRze8'><style id='YRze8'><dir id='YRze8'><q id='YRze8'></q></dir></style></legend>
                <tfoot id='YRze8'></tfoot>
                    <tbody id='YRze8'></tbody>

                    • <bdo id='YRze8'></bdo><ul id='YRze8'></ul>
                      <i id='YRze8'><tr id='YRze8'><dt id='YRze8'><q id='YRze8'><span id='YRze8'><b id='YRze8'><form id='YRze8'><ins id='YRze8'></ins><ul id='YRze8'></ul><sub id='YRze8'></sub></form><legend id='YRze8'></legend><bdo id='YRze8'><pre id='YRze8'><center id='YRze8'></center></pre></bdo></b><th id='YRze8'></th></span></q></dt></tr></i><div id='YRze8'><tfoot id='YRze8'></tfoot><dl id='YRze8'><fieldset id='YRze8'></fieldset></dl></div>

                        <small id='YRze8'></small><noframes id='YRze8'>