I thought that might be the problem Andrew but, I dont see anythinh wrong with the my.cnf.....<br>take a look:<br><br><font color="#cc33cc">#<br># The MySQL database server configuration file.<br>#<br># You can copy this to one of:<br>
# - &quot;/etc/mysql/my.cnf&quot; to set global options,<br># - &quot;~/.my.cnf&quot; to set user-specific options.<br>#<br># One can use all long options that the program supports.<br># Run program with --help to get a list of available options and with<br>
# --print-defaults to see which it would actually understand and use.<br>#<br># For explanations see<br># <a href="http://dev.mysql.com/doc/mysql/en/server-system-variables.html">http://dev.mysql.com/doc/mysql/en/server-system-variables.html</a><br>
<br># This will be passed to all mysql clients<br># It has been reported that passwords should be enclosed with ticks/quotes<br># escpecially if they contain &quot;#&quot; chars...<br># Remember to edit /etc/mysql/debian.cnf when changing the socket location.<br>
[client]<br>port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 3306<br>socket&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/run/mysqld/mysqld.sock<br><br># Here is entries for some specific programs<br># The following values assume you have at least 32M ram<br><br># This was formally known as [safe_mysqld]. Both versions are currently parsed.<br>
[mysqld_safe]<br>socket&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/run/mysqld/mysqld.sock<br>nice&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br><br>[mysqld]<br>#<br># * Basic Settings<br>#<br>user&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = mysql<br>pid-file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/run/mysqld/mysqld.pid<br>socket&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/run/mysqld/mysqld.sock<br>
port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 3306<br>basedir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /usr<br>datadir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/lib/mysql<br>tmpdir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /tmp<br>language&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /usr/share/mysql/english<br>skip-external-locking<br>#<br># Instead of skip-networking the default is now to listen only on<br>
# localhost which is more compatible and is not less secure.<br>bind-address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = <a href="http://127.0.0.1">127.0.0.1</a><br>#<br># * Fine Tuning<br>#<br>key_buffer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 16M<br>max_allowed_packet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 16M<br>
thread_stack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 128K<br>thread_cache_size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 8<br>#max_connections&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 100<br>#table_cache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 64<br>#thread_concurrency&nbsp;&nbsp;&nbsp;&nbsp; = 10<br>#<br># * Query Cache Configuration<br>#<br>query_cache_limit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1M<br>
query_cache_size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 16M<br>#<br># * Logging and Replication<br>#<br># Both location gets rotated by the cronjob.<br># Be aware that this log type is a performance killer.<br>#log&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/log/mysql/mysql.log<br>
#<br># Error logging goes to syslog. This is a Debian improvement :)<br>#<br># Here you can see queries with especially long duration<br>#log_slow_queries&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/log/mysql/mysql-slow.log<br>#long_query_time = 2<br>#log-queries-not-using-indexes<br>
#<br># The following can be used as easy to replay backup logs or for replication.<br># note: if you are setting up a replication slave, see README.Debian about<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; other settings you may need to change.<br>#server-id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1<br>
#log_bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /var/log/mysql/mysql-bin.log<br>expire_logs_days&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 10<br>max_binlog_size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 100M<br>#binlog_do_db&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = include_database_name<br>#binlog_ignore_db&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = include_database_name<br>
#<br># * BerkeleyDB<br>#<br># Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.<br>skip-bdb<br>#<br># * InnoDB<br>#<br># InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.<br># Read the manual for more InnoDB related options. There are many!<br>
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.<br>#skip-innodb<br>#<br># * Security Features<br>#<br># Read the manual, too, if you want chroot!<br># chroot = /var/lib/mysql/<br>#<br># For generating SSL certificates I recommend the OpenSSL GUI &quot;tinyca&quot;.<br>
#<br># ssl-ca=/etc/mysql/cacert.pem<br># ssl-cert=/etc/mysql/server-cert.pem<br># ssl-key=/etc/mysql/server-key.pem<br><br>[mysqldump]<br>quick<br>quote-names<br>max_allowed_packet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 16M<br><br>[mysql]<br>#no-auto-rehash # faster start of mysql but no tab completition<br>
<br>[isamchk]<br>key_buffer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 16M<br><br>#<br># * NDB Cluster<br>#<br># See /usr/share/doc/mysql-server-*/README.Debian for more information.<br>#<br># The following configuration is read by the NDB Data Nodes (ndbd processes)<br>
# not from the NDB Management Nodes (ndb_mgmd processes).<br>#<br># [MYSQL_CLUSTER]<br># ndb-connectstring=<a href="http://127.0.0.1">127.0.0.1</a><br><br><br>#<br># * IMPORTANT: Additional settings that can override those from this file!<br>
#<br>!includedir /etc/mysql/conf.d/<br><br></font><br><br><br><div class="gmail_quote">On Wed, Mar 26, 2008 at 7:58 PM, Andrew Mathenge &lt;<a href="mailto:mathenge@gmail.com">mathenge@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">This email is from a ubuntu-ke subscriber to other subscribers inluding you:)<br>
</div>Your client is looking for the MySQL socket in /var/run/mysqld<br>
<br>
Check your my.cnf. In my installation, this file is in /etc/mysql<br>
<br>
Inside this file is a line that reads:<br>
<div class="Ih2E3d"><br>
socket = /var/run/mysqld/mysqld.sock<br>
<br>
</div>Based on your installation this line may say something else.<br>
<br>
Something else you can do is search for the file my.cnf. You can<br>
use the following command to search for the file:<br>
<br>
find / -name &quot;my.cnf&quot; -print<br>
<br>
Let me know how many files are actually found. Depending (again)<br>
on your installation, your MySQL may be using a different my.cnf<br>
which is using a mysqld.sock that&#39;s in a different location.<br>
<br>
Hope that this makes sense.<br>
<br>
Andrew.<br>
<div class="Ih2E3d"><br>
On Wed, Mar 26, 2008 at 7:37 AM, Antony Kipingor &lt;<a href="mailto:kipingor@gmail.com">kipingor@gmail.com</a>&gt; wrote:<br>
<br>
&gt; This email is from a ubuntu-ke subscriber to other subscribers inluding<br>
&gt; you:)<br>
</div><div><div></div><div class="Wj3C7c">&gt; Hi all,<br>
&gt;<br>
&gt; I hope you have been well, I resently attempted to upgrade Mysql server.<br>
&gt; The<br>
&gt; server is now giving me issues, I believe the root of the problem is the<br>
&gt; my.cnf is a &nbsp;different version than the server itself.<br>
&gt;<br>
&gt; When I attempt to login i.e.<br>
&gt; #mysql -u root -p<br>
&gt; etc<br>
&gt; I receive the following error message:<br>
&gt; ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket<br>
&gt; &#39;/var/run/mysqld/mysqld.sock&#39; (2)<br>
&gt;<br>
&gt; Can anyone help me<br>
</div></div><div class="Ih2E3d">&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL:<br>
&gt; <a href="https://lists.ubuntu.com/archives/ubuntu-ke/attachments/20080326/0f43de26/attachment.htm" target="_blank">https://lists.ubuntu.com/archives/ubuntu-ke/attachments/20080326/0f43de26/attachment.htm</a><br>
&gt; --<br>
&gt; Ubuntu-ke mailing list<br>
&gt; <a href="mailto:Ubuntu-ke@lists.ubuntu.com">Ubuntu-ke@lists.ubuntu.com</a><br>
&gt; <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-ke" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-ke</a><br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
</div>URL: <a href="https://lists.ubuntu.com/archives/ubuntu-ke/attachments/20080326/78c88692/attachment.htm" target="_blank">https://lists.ubuntu.com/archives/ubuntu-ke/attachments/20080326/78c88692/attachment.htm</a><br>

<div><div></div><div class="Wj3C7c">--<br>
Ubuntu-ke mailing list<br>
<a href="mailto:Ubuntu-ke@lists.ubuntu.com">Ubuntu-ke@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-ke" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-ke</a><br>
</div></div></blockquote></div><br>