Jump to content

Execute a *.sql file in the mysql shell


neugi

Recommended Posts

Hi,

i found out that there are 2 ways:

in the mysql Tool type: SORUCE file.sql
or
mysql -u USER -p PASWWORD DATABASE < file.sql

my problem is now that after a few secounds i get this error:
[code]ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    155
Current database: cd1_gmunden[/code]

only the structure of the table is created, but no data in it.
sql file is generated with phpmyadmin

best

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.