Command Line To Import Large SQL Into PhpMyAdmin

If importing using phpmyadmin times out, you can import using the command line.

Open a terminal and cd to /etc

[user]@[machine name][~]$ cd /etc
[user]@[machine name]:/etc$ mysql -u elinran -p [databasename] < [path to file]/file.sql
Enter password:

Replace information in [ brackets ] with your information

It takes a while and you might think nothing is happening, when
[user]@[machine name]:/etc$ [with your user information] returns the database has been imported.

Direct Admin Note;
You can download a copy of your database from the mysql management in Direct Admin. This is a file.gz It can be imported into phpmyadmin if it is small enough. You will need to make a copy of the database directly from phpmyadmin and save as a .sql to use the command line method to import.