Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了什么:
mysql -u root -p -h localhost gx < gxe.sql
结果:
[root@jony html]# mysql -u root -p -h localhost gx < gxe.sql Enter password: [root@jony html]#
它实际上没有做任何事情。我尝试刷新我的 SQL 客户端(Heidi SQL),但仍然没有?我做错了什么?谢谢!
操作系统:CentOS 6 - Linux
mysql语法mysqldump略有不同
mysql
mysqldump
mysql需要-D参数来设置数据库。
-D
所以试试
mysql -u root -p -h localhost -D gx < gxe.sql