Archive for November, 2008

How To Fix: Can’t connect to local MySQL server through socket /tmp/mysql.sock

Friday, November 21st, 2008

If you found trouble on your Mac OS X Leopard or other Mac OS X Can’t connect to local MySQL server through socket /tmp/mysql.sock. I got the solutions how to fix it.

When connecting to a MySQL server located on the local system, the mysql client connects thorugh a local file called a socket instead of connecting to the localhost loopback address 127.0.0.1. For the mysql client, the default location of this socket file is /tmp/mysql.sock. However, for a variety of reasons, many MySQL installations place this socket file somewhere else like /var/lib/mysql/mysql.sock.

While it is possible to make this work by specifying the socket file directly in the mysql client command

mysql –socket=/var/lib/mysql/mysql.sock …

If you must do so this way (because you don’t have permissions to the file in the solution below), you could create an alias in your shell to make this work (like alias mysql=”mysql –socket=/var/lib/mysql/mysql.sock” depending on your shell).

To make your life easier, you can make a simple change to the MySQL configuration file /etc/my.cnf that will permanently set the socket file used by the mysql client. After making a backup copy of /etc/my.cnf, open it in your favorite editor. The file is divided into sections such as

[mysqld]
datadir=/usr/local/mysql/data
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/usr/local/mysql

If there is not currently a section called [client], add one at the bottom of the file and copy the socket= line under the [mysqld] section such as:

[client]
socket=/var/lib/mysql/mysql.sock

If there is already a [client] section in the my.cnf file, add or edit the socket line as appropriate. You won’t need to restart your server or any other processes. Subsequent uses of the mysql client will use the proper socket file. And have a nice day ;)

Popularity: 2%

Download Opera Mini 4.2 beta

Wednesday, November 12th, 2008

Opera has been released next updated of they phenomenon product Opera Mini. Here some in formations about new version of opera mini

New in Opera Mini 4.2 beta

Skins

Personalize Opera Mini by choosing a new colorful skin. We have reintroduced the popular skinning feature from Opera Mini 3.

Performance

Opera Mini 4.2 can use our newly established server park in the US. This means significantly faster page downloads for our users in the Americas and Asia-Pacific region. Users in the rest of the world will also experience faster page downloads since we’ve reduced the load on our other servers.

Video

We are working to make video content available on more phones through Opera Mini. If you have a new Sony Ericsson or Nokia phone, the chance is high that you can take Opera Mini for a spin on m.youtube.com.

Sync your Notes

The handy Notes functionality from the Opera Desktop Web browser just got more portable through Opera Link. All of your notes are available in Opera Mini directly from the Bookmarks menu.

Popularity: 2%

What’s new in Gmail?

Wednesday, November 5th, 2008

15 new Labs features to try out

Google LabsFrom the useful to the playful, there’s a whole lot more to play with in Gmail Labs, our testing ground for experimental features. Here’s a taste of what’s new since Labs first launched:

  • Google Calendar and Docs gadgets
  • A forgotten attachment detector
  • Advanced IMAP controls
  • Canned responses to save and send common replies automatically

Turn on these and more from the Labs tab under Settings, and don’t forget to let us know what you think. Learn more

Gmail on Android

Googe AndroidGmail is now available on the world’s first Android-powered phone, the T-Mobile G1. All of the features you love about Gmail on your computer, plus real time push email so you never need to refresh your inbox. Learn more

Emoticons – they’re not just for chat anymore

Google EmoticonsExpress yourself with emoticons from  to  or even . Click the  button when composing a message in “Rich formatting” mode, or choose the new emoticons tab in chat, and express yourself to your ’s desire. Learn more

Gmail for mobile 2.0

GMail Mobile 2.0Save multiple mobile drafts, compose and read recent email offline, use new shortcut keys and more. Download Gmail for mobile 2.0 for your BlackBerry or J2ME phone by going to m.google.com/mail in your mobile browser.

Popularity: 1%