Categories
computer engineering Διαδίκτυο ΜΜΕ

How to use MySQL query browser to work with a remote DB server where remote TCP connections to the MySQL server are not allowed

MySQL
Image via Wikipedia

In this tutorial I will explain how to use the very convenient MySQL query browser to connect and work to your remote MySQL server, where you do not allow remote TCP connections for security reasons (and you do very well!)

Many users use web gui tools like phpMyAdmin, but they have limitations and are some times frustrating to use.

I suppose you work in Windows. If you work in Linux, this tutorial will help you too and you can ommit the part of the Cygwin installation (see below).

To accomplish the goals of this tutorial we will use 2 great free tools:

  1. Cygwin
  2. MySQL gui tools

Get them now!

I also suppose that you have ssh access to your database server. If not (eg you are on a shared hosting environment), you can not proceed with this tutorial.

After the downloads get complete, install the tools. The installation is pretty straightforward and is out of the scope of this tutorial. One thing you have to be carefull about though, is to install the package openssh in Cygwin, as this will do the most tricky and clever part of the dirty job for us 🙂

Now run Cygwin simply by double clicking the shortcut that you may have created on your desktop or by using the cygwin.bat at the directory you installed Cygwin. A unix like command line appears. In there you must enter the  “magic” command:

ssh -N -f -L 4783:127.0.0.1:3306 username@servername

where username the ssh user account to connect to your server and servername the IP or URL of your server. This supposes that you ssh to your server at  the default port. If you connect at another port, you should user the parameter -p port as well.

But what does this command do? It creates an ssh tunel from your pc to your server and each call that arrives at your pc at the port 4783 (this is random you can choose whatever you like and is free on your pc), is forwarded to port 3306 (the MySQL service port) at your server! If you have configured your MySQL server to listen to another port, you should change the command accordingly!

Now, things are easy, open MySQL query browser and create a new connection. As servername use localhost (!) and as port the one that you defined above (4783). Insert the username and password of your remote db server though!

You will get a warning that you have not specified a default schema (if you havent). Just ignore it!

If you have done everything ok, you should be browsing your remote MySQL database as if it where on your localhost!

Cheers!

Categories
Διαδίκτυο Ελλάδα ΜΜΕ

Το internet δεν είναι έγκυρο, τα παραδοσιακά ΜΜΕ είναι!

Τις προάλλες είδα πρωτοσέλιδο στον Ελεύθερο Τύπο ένα (δήθεν όπως εξηγώ παρακάτω) απόφθεγμα του Ισοκράτη το οποίο έχω χρησιμοποιήσει και εγώ ως υπογραφή μου σε έναν χώρο διαδικτυακών συζητήσεων (forum) του οποίου είμαι ιδρυτής και διαχειριστής (fmgreece.gr) .  Το δήθεν απόφθεγμα είναι το παρακάτω:

Η Δημοκρατία μας αυτοκαταστρέφεται, διότι κατεχράσθη το δικαίωμα της ελευθερίας και της ισότητας, διότι έμαθε τους πολίτες να θεωρούν την αυθάδεια ως δικαίωμα, την παρανομία ως ελευθερία, την αναίδεια του λόγου ως ισότητα και την αναρχία ως ευδαιμονία

Αυτή την φράση, την χρησιμοποίησα εγώ στο forum πολύ πριν τα πρόσφατα γεγονότα με την δολοφονία του 15χρονου, για να ενδυναμώνει τα επιχειρήματά μου, όταν συμμόρφωνα  απαίδευτους συνομιλητές μας, που μπαίνουν σε έναν χώρο και χωρίς να διαβάσουν τους κανόνες που αποδέχτηκαν κατά την εγγραφή τους αρχίζουν να συπεριφέρονται απαράδεκτα σαν κλασσικοί ελληναράδες:

  • ζητάνε crack και παράνομο λογισμικό
  • γράφουν τα μηνύματά τους στην βάρβαρη γραφή των greeklish
  • γράφουν ό,τι τους κατέβει, όπου τους κατέβει
  • βρίζουν και ειρωνεύονται οπαδούς άλλων ομάδων σαν να βρίσκονται στο γήπεδο
  • αντιδρούν άκομψα στις συστάσεις των διαχειριστών της κοινότητας

Χάρηκα λοιπόν που είδα μια μεγάλη εφημερίδα σαν τον Ελεύθερο τύπο, να την κάνει πρωτοσέλιδο στην τωρινή συγκυρία, με έναν μπάτσο να αφαιρεί μια ανθρώπινη ζωή και με βανδάλους να αφαιρούν ανθρώπινες περουσίες.

Μετά όμως υπέπεσε ευτυχώς στην αντίληψή μου το παρακάτω σχόλιο του Σαραντάκου με τίτλο “Ισοκράτης και ελληναράδες”:

http://www.sarantakos.com/isocrat.htm

Ομολογώ και εγώ ότι έπεσα στην πλάνη αυτή. Πολύ πριν το “αποφθεγμα” γίνει της μόδας, το είχα βρει σε μια σελίδα με γνωμικά και το θεώρησα 100% κατάλληλο για να εκφράσει τις σκέψεις μου όταν πρέπει να συνετίσω στο φόρουμ άλλον έναν κάφρο του διαδικτύου.

Αλλά όταν στην πλάνη αυτή πέφτει στο πρωτοσέλιδό της μια από τις μεγαλύτερες εφημερίδες της χώρας, δεν μπορώ παρά να το καυτηριάσω!

Την επόμενη φορά που θα εκφραστεί από κλασσικά ΜΜΕ (τηλεοράσεις, ραδιόφωνα και εφημερίδες) η άποψη ότι το διαδίκτυο είναι αφερέγγυο γιατί ο καθένας γράφει ό,τι θέλει, ας σκεφτούνε πόσες φορές αυτοί κάνανε copy paste από το διαδίκτυο χωρίς να διασταυρώσουν καν αυτό που “ψαρέψανε”!

edit: Σήμερα υπάρχει και σχετικό σχόλιο στο Ρεπορτάζ χωρίς σύνορα:
http://www.tvxs.gr/v1462

Categories
Διαδίκτυο Κόσμος

Τραγική περίπτωση spam

Απορώ πώς είναι δυνατόν να υπάρχουν άτομα που τσιμπάνε με τέτοια mails. Ως συνήθως,πέθανε κάποιος τύπος λέει στην Μπενίν που είχε το όνομά μου και δεν μπορούν να ωρουν κληρονόμους και βρήκαν εμένα που έχω το ίδιο επίθετο και θέλου να μου δώσουν τα λεφτά (τι καλοί κυριοι). Πρέπει να ανταποκριθώ μέσα σε 21 εργάσιμες γιατί μετά θα τα κατασχέσει η κυβέρνηση της Μπενιν. Γι’ αυτό να τους δώσω τηλ και φαξ. Από αυτά θα μου ζητήσουν μετά νομική συγκατάθεση και τραπεζικό λογαριασμό (για να μου βάλουν τα λεφτά ντε, όχι για να μου φάνε ότι έχω και δεν έχω!). Δεν πειράζει, τα κάνω δώρο τα 8 δις στην φτωχή κυβέρνηση της Μπενιν…

FROM THE DESK OF BARRISTER JOHN COCA (ESQ.)
COUNSELORS AT LAW
03 BP 2335, COTONOU REPUBLIC DU BENIN .
Fax. 21 31 35 05
DIRECT TEL. +229 98 26 87 68

ATTEN: Thanasis  Kouk,

I am barrister John COCA, a solicitor at law. the personal attorney to Engr.Andres  Kouk, a national of your country, who used to work with Texaco oil and gas  development company in Cotonou Republic of Benin . Here in after shall be referred to as my client.

On the 4th of July 2006, my client, his wife and their only daughter were involved in a car accident along nouvissi express road, all occupants of the vehicle unfortunately lost there lives. Since then I have made several enquiries to your embassy here to locate any of my clients extended relatives, this has also proved unsuccessful.
After these several unsuccessful attempts, i decided to track his last name with my country chamber of commerce and embassy, to locate any member of his family hence i contacted you. i have contacted you to assist in repatriating the fund valued at us$8.5 million left behind by my client before it gets confiscated or declared unserviceable by the foreign remittance department of Continental Bank of Benin where this huge amount were deposited. The said Continental Bank of Benin has issued me a notice to provide the next of kin or have his account confiscated within the next twenty one official working days.
Since I have been unsuccessful in locating the relatives for over 2years now, i seek the consent to present you as the next of kin to the deceased since you have the same last names and come from the same country, so that the proceeds of this account can be paid to you as the next of kin to my late client. Therefore, on receipt of your positive response, we shall then discuss the sharing ratio and modalities for transfer. I have all necessary information?s and legal documents needed to back us up for claim. All I require from you is your honesty and co-operation to enable us sees this transaction through.

I guarantee that this will be executed under legitimate arrangement that will protect you from any breach of the law. In your return mail kindly indicate to me your personal telephone and fax number for further oral clarification and you call me upon your receipt of this mail.

Best regards,
Barrister John Coca.

+229 98 26 87 68
Categories
computer engineering Διαδίκτυο Ελλάδα Τρίκαλα

Broadband Cities 2008

Location of Trikala Prefecture in Greece
Image via Wikipedia

Στην πατρίδα μου, τα Τρίκαλα διοργανώνεται το συνέδριο Broadband Cities 2008. Πρόκειται για το ετήσιο παγκόσμιο συνέδριο του INEC Broadband Cities, το οποίο φέτος θα διοργανωθεί στα Τρίκαλα από 21 έως 23 Οκτωβρίου 2008. Θα συμμετέχουν κοινότητες που έχουν εφαρμόσει στην πράξη το μοντέλο της “ευρυζωνικής πόλης” από χώρες όλου το κόσμου, ανάμεσα στις οποίες είναι και πόλεις των  ΗΠΑ, της Νότιας Αφρικής, της Μαλαισίας  και πολλές ευρωπαϊκές πόλεις.

Το πρόγραμμα της διοργάνωσης

e-trikala H πρώτη ηλεκτρονική πόλη της Ελλάδας

Ιστοσελίδα Δήμου Τρικκαίων

Διεθνές δίκτυο ηλεκτρονικών κοινοτήτων

Το διαφημιστικό spotάκι:

Categories
Διαδίκτυο Ελλάδα

Έκλεισαν όλα τα ελληνικά sites υποτίτλων…

Είδηση:

http://new.e-go.gr/tech/article.asp?cat … id=1420582

Αντίδραση στο facebook:

http://www.facebook.com/group.php?gid=34791331945

Βέβαια, τα greek subtitles sites τους φταίγανε. Το ότι ο καθένας μπορεί να βρει να κατεβάσει ολόκληρη ταινία όποτε θέλει … Τα ελληνικά sites υποτίτλων περιείχαν και υποτίτλους για ελεύθερα διακινούμενες ταινίες και σειρές, υποτίτλους για άτομα με ειδικές ανάγκες στα Ελληνικά κοκ Τέλος πάντων, τέτοιες κινήσεις είναι καταδικασμένες σε αποτυχία, καθώς είναι θέμα χρόνου να ξεπηδήσουν οι υπηρεσίες – αντικαταστάτες …

Categories
Διαδίκτυο

Corona beer beach!

Η μπύρα Corona έχει φτιάξει ένα πολύ όμορφο promo flash site, το οποίο μου θύμισε λιγάκι τις καλοκαιρίνές διακοπές που πέρασαν! Bρίσκεσαι σε μια παραλία παρέα με μπύρες Corona και δεν ασχολείσαι με τίποτα άλλο! Πετάς και το κινητό στην θάλασσα όταν σε ενοχλούν!

Ανακαλύψτε την Corona beach...