How do I import an SQL file using the command line in MySQL?

后端 未结 30 2798
不知归路
不知归路 2020-11-22 06:48

I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line.

I have a Windows Ser

30条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 07:29

    A solution that worked for me is below:

    Use your_database_name;
    SOURCE path_to_db_sql_file_on_your_local;
    

提交回复
热议问题