¿Cómo ejecutar archivos .sql presentes en una máquina con Windows en un servidor mysql conectado de forma remota?
Frecuentes
Visto 93 veces
1
I have a .sql file on windows that I want to run on mysql server that is present on centOS. I am using the following command to connect and execute the .sql file-
mysql -u user_name -ppassw0rd -h [ip address of centOS] -P [port used by mysql server] --verbose < file path on windows.
But on executing this command i am getting an error as :
ERROR 2013 (HY000) at line 3: Lost connection to MySQL server during query
Also is there any way to see the errors that occur when query is executed.
Note - I am using mysql command line tool on windows to run the above command.
0 Respuestas
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas mysql linux centos or haz tu propia pregunta.
i have tried setting --wait_timeout but it doesn't help. - user3040623
do you have any firewall rules on the mysql machine preventing you access from localhost? - simonC
i can access my mysql machine - user3040623
i have checked that already.... - user3040623
jerrywalsh.org/2009/solving-mysql-error-2013-hy000-0130.html - Sathish D