I want to inset a few 1000 lines of code into an existing database... but it times out every time. Is there a way to ssh a file on the server to the database or something? What'd be the best way to do this?
Do you have ssh access to the server, and a file containing the sql queries you want to perform? If so, it's a piece of cake: user@server1:~# mysql -u user -p dbname < sql_file.sql Code (markup): How are you importing the data right now? Are you sure it's mysql that's timing out, and not for instance php?
I got it to work, thanks. I actually had an error in the code (that didn't through an error) so that's what threw me off (haha). Thanks though.