قطع شدن اتصال مای اسکیوال

21 views
Skip to first unread message

mahdi pishguy

unread,
Aug 19, 2016, 3:28:38 PM8/19/16
to node...@googlegroups.com
​سلام. نمیدونم چرا بعد از چند ساعت کانکشن مای اسکیوال تو سمت سرور قطع میشه خطای زیر رو میگیرم

Error: Connection lost: The server closed the connection.
    at Protocol.end (/home/chapar/epay/node_modules/mysql/lib/protocol/Protocol.js:109:13)
    at Socket.<anonymous> (/home/chapar/epay/node_modules/mysql/lib/Connection.js:115:28)
    at emitNone (events.js:72:20)
    at Socket.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:921:12)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)


کدهایی که من استفاده میکنم:


var
connection = mysql.createConnection(
{
host : 'XXXXX',
user : 'XXXXXX',
password : 'XXXX',
database : 'XXXXXX',
charset : 'utf8_persian_ci',
multipleStatements: true
});


Amin Aghabeiki

unread,
Aug 20, 2016, 1:28:56 AM8/20/16
to nodejs-fa

Amin Aghabeiki

unread,
Aug 20, 2016, 1:29:38 AM8/20/16
to nodejs-fa
در کل نود با مای اسکیول و تمام هم خانواده هاش مشکل داره 
این طبیعی هست

Morteza Milani

unread,
Aug 20, 2016, 2:25:03 AM8/20/16
to node...@googlegroups.com
شاید به خاطر اینکه مدت زیادی  کانکشن بدون استفاده باز میمونه. هندلر error بنویسید و reconnect کنید.

--
You received this message because you are subscribed to the Google Groups "nodejs-fa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs-fa+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

مهدی پیشگوی

unread,
Aug 21, 2016, 1:23:47 PM8/21/16
to nodejs-fa
آره کانکشن ساعتها بدون دریافت و ارسال میمونه چون هنوز باری نیومده روش. فعلا از لینکی که دوست عزیزمون دادن استفاده میکنم ببینم چطوری میشه

مهدی پیشگوی

unread,
Aug 22, 2016, 10:39:41 AM8/22/16
to nodejs-fa
ممنون @Amin Aghabeiki

مشکله حل شده.
دستت درد نکنه بابت معرفی لینک

Amin Aghabeiki

unread,
Aug 22, 2016, 10:12:20 PM8/22/16
to node...@googlegroups.com
خدا را شکر. 
موفق باشید. 


--
You received this message because you are subscribed to a topic in the Google Groups "nodejs-fa" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs-fa/GwXagWXO3bY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs-fa+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages