These days there are a number of really cool MySQL front-end tools available for all platforms. इन दिनों वहाँ वास्तव में अच्छा MySQL सामने की एक संख्या के अंत सभी प्लेटफार्मों के लिए उपकरण उपलब्ध हैं. Some are web based and can be installed on the MySQL server, while there are others which need to be installed on your local laptop or desktop computer. कुछ वेब पर आधारित हैं और MySQL सर्वर पर स्थापित किया जा सकता है, जबकि वहाँ जो दूसरों के लिए अपने स्थानीय लैपटॉप या डेस्कटॉप कंप्यूटर पर स्थापित करने की आवश्यकता है. If you have a MySQL server running somewhere outside your local network you will most likely need to access it over the Internet to allow your super cool MySQL desktop client talk to it. यदि आप एक MySQL अपने स्थानीय नेटवर्क आप सबसे इसे इंटरनेट पर पहुँच की आवश्यकता होने की संभावना इसे अपने सुपर ठंडा MySQL डेस्कटॉप ग्राहक बात की अनुमति होगी बाहर कहीं सर्वर चल रहा है. You might be tempted to allow the MySQL server to run openly over the Internet to allow you access. आपको MySQL सर्वर खुलेआम इंटरनेट पर चलाने के लिए अनुमति परीक्षा हो सकती है आप का उपयोग की अनुमति. That would be an extremely bad idea. वह एक बहुत बुरा विचार होगा. Here's a much better solution to allow you access without compromising much on security. यहाँ एक बेहतर उपाय है सुरक्षा पर बहुत समझौता किए बिना आप का उपयोग की अनुमति है.
Let's see how we can do this using an SSH tunnel based connection to your MySQL server. चलो देखते हैं हम एक ssh आधारित सुरंग का प्रयोग कनेक्शन अपने MySQL सर्वर से ऐसा कैसे कर सकते हैं. There are two steps to do this. वहाँ दो कदम को यह कर रहे हैं. The first is to create an SSH tunnel connection from your computer to your MySQL server while piping the data to and from the MySQL server though the SSH tunnel. सबसे पहले आपके MySQL सर्वर को अपने कंप्यूटर से एक ssh सुरंग संबंध बनाने के समय और MySQL सर्वर से डाटा पाइपिंग है ssh सुरंग यद्यपि. The next step is to make a MySQL connection to a local port and gain access to your remote MySQL server. अगले कदम के लिए एक स्थानीय बंदरगाह और अपने लाभ दूरस्थ MySQL सर्वर का उपयोग करने के लिए एक MySQL कनेक्शन बना है. The following command will create an ssh tunnel from remoteserver.net to your local computer. निम्न कमांड आपके स्थानीय कंप्यूटर के लिए remoteserver.net से एक ssh सुरंग पैदा करेगा. It will forward the incoming and outgoing traffic to that computer's port 3306 to your local computer's port 6666 . इसे आगे आने वाली और बाहर जाने वाले यातायात आपके स्थानीय कंप्यूटर के 6,666 बंदरगाह के लिए है कि कंप्यूटर के 3,306 बंदरगाह है.
ssh user@remoteserver.net -L 6666:localhost:3306 ssh user@remoteserver.net-6666 एल: localhost: 3,306
Modify the command shown above, replacing the user@remoteserver.net part with the credentials of your remote server, and -L 6666 with the port on which you want to access MySQL on your local machine. ऊपर दिखाए गए आदेश संशोधित करें, अपने दूरदराज के सर्वर के क्रेडेंशियल्स के साथ user@remoteserver.net हिस्सा की जगह ले, और एल बंदरगाह है जिस पर आप अपने स्थानीय मशीन पर MySQL का उपयोग करना चाहते के साथ 6,666. Once you have run this command you will be asked to enter the password for the user you used to log in as on the remote server. एक बार जब आप इस कमान आप प्रयोक्ता के रूप में आप दूरस्थ सर्वर पर में प्रवेश के लिए इस्तेमाल किया पासवर्ड दर्ज करें पूछा जाएगा चला है. After you successfully enter the password your ssh tunnel should be up and running. तुम्हारे जाने के बाद सफलतापूर्वक अपना पासवर्ड ssh सुरंग की जानी चाहिए और भाग दर्ज करें.
Now launch your favorite MySQL client and make a connection with you remote MySQL server using the ssh tunnel you just created. अब आप अपने पसंदीदा MySQL ग्राहक शुरू करने और आप के साथ संबंध बनाने के दूरस्थ MySQL ssh सुरंग तुम अभी बनाया का उपयोग कर सर्वर. Assuming you setup the tunnel on port 6666 you will need to use the following credentials to connect. आप स्थापना मान 6,666 बंदरगाह पर सुरंग आप निम्नलिखित क्रेडेंशियल्स उपयोग से कनेक्ट करने की आवश्यकता होगी.
host: 127.0.0.1 मेजबान: 127.0.0.1
port: 6666 पोर्ट: 6,666
You will need to use the database authentication that you use with your remote server. आप डेटाबेस प्रमाणीकरण है कि आप अपने दूरदराज के सर्वर के साथ प्रयोग के उपयोग की आवश्यकता होगी. If you did everything right you should now be able to see your remote databases in your MySQL client. अगर तुम सब कुछ ठीक है अब आप अपने MySQL ग्राहक में आपके दूरस्थ डेटाबेस देखने में सक्षम होना चाहिए था. You are now on a secure remote connection. आप एक सुरक्षित दूरदराज के कनेक्शन पर अब कर रहे हैं. Remember to close the ssh tunnel when you are done with using MySQL by quitting the ssh session you setup initially. को ssh जब तुम ssh सत्र छोड़ने आप शुरू में स्थापना द्वारा MySQL का उपयोग कर के साथ किया है सुरंग के निकट याद रखें.























0 Responses 0 प्रतिक्रियायें
Stay in touch with the conversation, subscribe to the बातचीत के साथ संपर्क में रहो, की सदस्यता लें RSS feed for comments on this post आरएसएस के इस पोस्ट पर टिप्पणियों के लिए फ़ीड . .