Home >Database >Mysql Tutorial >mysql下如何执行sql脚本

mysql下如何执行sql脚本

WBOY
WBOYOriginal
2016-06-07 15:15:121226browse

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 进入MySql,选择数据库drpItem,执行source E:\struts_training_itemmgr.sql,如下所示: Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

 

  进入MySql,选择数据库drpItem,执行source E:\struts_training_itemmgr.sql,如下所示:

  Enter password: ********

  Welcome to the MySQL monitor.  Commands end with ; or \g.

  Your MySQL connection id is 110

  Server version: 5.0.77-community-nt MySQL Community Edition (GPL)

  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

  mysql> use drpItem;

  Database changed

  mysql> source E:\struts_training_itemmgr.sql

  Query OK, 0 rows affected (0.03 sec)

  Query OK, 0 rows affected (0.05 sec)

  Query OK, 0 rows affected (0.09 sec)

  Query OK, 0 rows affected (0.08 sec)

  Query OK, 1 row affected (0.03 sec)

  Query OK, 1 row affected (0.03 sec)

  Query OK, 1 row affected (0.03 sec)

  Query OK, 1 row affected (0.03 sec)

  Query OK, 1 row affected (0.02 sec)

  Query OK, 1 row affected (0.03 sec)

  Query OK, 1 row affected (0.03 sec)

  mysql>

  [1] [2] 

mysql下如何执行sql脚本

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:NS2入门实例 2Next article:oracle系统统计信息