neugi Posted September 21, 2006 Share Posted September 21, 2006 Hi, till now i haven't workd with the mySQL Shell, an now i've to import a 400 MB sql file to my database. Is there a way to execute it in the mysql shell?this one don't worked : LOAD DATA INFILE 'ARTIKEL_akt.sql' INTO TABLE cd1_gmunden.artikel;thx Link to comment https://forums.phpfreaks.com/topic/21505-execute-a-sql-file-in-the-mysql-shell/ Share on other sites More sharing options...
neugi Posted September 21, 2006 Author Share Posted September 21, 2006 Hi, i found out that there are 2 ways:in the mysql Tool type: SORUCE file.sqlormysql -u USER -p PASWWORD DATABASE < file.sqlmy problem is now that after a few secounds i get this error:[code]ERROR 2006 (HY000): MySQL server has gone awayNo connection. Trying to reconnect...Connection id: 155Current database: cd1_gmunden[/code]only the structure of the table is created, but no data in it.sql file is generated with phpmyadminbest Link to comment https://forums.phpfreaks.com/topic/21505-execute-a-sql-file-in-the-mysql-shell/#findComment-95923 Share on other sites More sharing options...
fenway Posted September 21, 2006 Share Posted September 21, 2006 Strange... and you're doing this locally? Link to comment https://forums.phpfreaks.com/topic/21505-execute-a-sql-file-in-the-mysql-shell/#findComment-96061 Share on other sites More sharing options...
neugi Posted September 21, 2006 Author Share Posted September 21, 2006 yes, all files are on the serverbest Link to comment https://forums.phpfreaks.com/topic/21505-execute-a-sql-file-in-the-mysql-shell/#findComment-96144 Share on other sites More sharing options...
fenway Posted September 22, 2006 Share Posted September 22, 2006 Then I don't see how you can be losing the connection... unless you're sending huge amounts of data all at once, or the server died. Link to comment https://forums.phpfreaks.com/topic/21505-execute-a-sql-file-in-the-mysql-shell/#findComment-96591 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.