首頁 > 後端開發 > php教程 > mysql导出文件有关问题?请!

mysql导出文件有关问题?请!

WBOY
發布: 2016-06-13 13:12:46
原創
870 人瀏覽過

mysql导出文件问题?请高手指点!!!
mysql> select version();current_date;
+------------------+
| version() |
+------------------+
| 5.1.36-community |
+------------------+
1 row in set (0.00 sec)

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'curre
nt_date' at line 1
mysql> select version();current_date;
+------------------+
| version() |
+------------------+
| 5.1.36-community |
+------------------+
1 row in set (0.00 sec)

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'curre
nt_date' at line 1
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| metinfo |
| mysql |
| newnetinfo |
| test |
+--------------------+
5 rows in set (0.00 sec)

mysql> mysqldump -u root -p test>d:\test.sql;
Outfile disabled.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'mysql
dump -u root -p test>d:est.sql' at line 1
mysql>

我查看了是5.1.36 版本的mysql,请问怎么样才导出成功,是不是版本问题?是怎么解决的昵?谢谢!!!

------解决方案--------------------
mysqldump是在命令行下执行的。。。
------解决方案--------------------
系统命令行下 比如win的dos

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板