I am having trouble importing semi-large and large databases via SOURCE in MySQL. I am currently working with PHPMyAdmin and have found using SOURCE instead of importing via PHPMyAdmin is a lot faster. Databases that range from KB to a few hundred MB imports via SOURCE Just fine.
However, I am attempting to import a larger file, 705mb. The importation via SOURCE works fine, however, I run into an error a few minutes into the importing.
Query OK, 143 rows affected (0,00 sec)
Records: 143 Duplicates: 0 Warnings: 0
ERROR 2013 (HY000): Lost connection to MySQL server during query
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
ERROR:
Can't connect to the server
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
ERROR:
Can't connect to the server
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR:
Can't connect to the server
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR:
Can't connect to the server
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR:
Can't connect to the server
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR:
Can't connect to the server
then it just outputs me back to the normal mysql, the server still runs and works fine.
Here is the fresh output of my log file.
2022-01-24T19:32:49.392256Z 0 [Warning] [MY-000081] [Server] option 'max_allowed_packet': unsigned value 2147483648 adjusted to 1073741824.
2022-01-24T19:32:49.393200Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.27-0ubuntu0.20.04.1) starting as process 61918
2022-01-24T19:32:49.399762Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-01-24T19:32:51.373828Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-01-24T19:32:51.467545Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
2022-01-24T19:32:51.474007Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
2022-01-24T19:32:51.542533Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2022-01-24T19:32:51.542573Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2022-01-24T19:32:51.543651Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2022-01-24T19:32:51.543718Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2022-01-24T19:32:51.579154Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '127.0.0.1' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2022-01-24T19:32:51.579215Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.27-0ubuntu0.20.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu).