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>
# - "/etc/mysql/my.cnf" to set global options,<br># - "~/.my.cnf" 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 "#" chars...<br># Remember to edit /etc/mysql/debian.cnf when changing the socket location.<br>
[client]<br>port = 3306<br>socket = /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 = /var/run/mysqld/mysqld.sock<br>nice = 0<br><br>[mysqld]<br>#<br># * Basic Settings<br>#<br>user = mysql<br>pid-file = /var/run/mysqld/mysqld.pid<br>socket = /var/run/mysqld/mysqld.sock<br>
port = 3306<br>basedir = /usr<br>datadir = /var/lib/mysql<br>tmpdir = /tmp<br>language = /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 = <a href="http://127.0.0.1">127.0.0.1</a><br>#<br># * Fine Tuning<br>#<br>key_buffer = 16M<br>max_allowed_packet = 16M<br>
thread_stack = 128K<br>thread_cache_size = 8<br>#max_connections = 100<br>#table_cache = 64<br>#thread_concurrency = 10<br>#<br># * Query Cache Configuration<br>#<br>query_cache_limit = 1M<br>
query_cache_size = 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 = /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 = /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># other settings you may need to change.<br>#server-id = 1<br>
#log_bin = /var/log/mysql/mysql-bin.log<br>expire_logs_days = 10<br>max_binlog_size = 100M<br>#binlog_do_db = include_database_name<br>#binlog_ignore_db = 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 "tinyca".<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 = 16M<br><br>[mysql]<br>#no-auto-rehash # faster start of mysql but no tab completition<br>
<br>[isamchk]<br>key_buffer = 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 <<a href="mailto:mathenge@gmail.com">mathenge@gmail.com</a>> 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 "my.cnf" -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'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 <<a href="mailto:kipingor@gmail.com">kipingor@gmail.com</a>> wrote:<br>
<br>
> This email is from a ubuntu-ke subscriber to other subscribers inluding<br>
> you:)<br>
</div><div><div></div><div class="Wj3C7c">> Hi all,<br>
><br>
> I hope you have been well, I resently attempted to upgrade Mysql server.<br>
> The<br>
> server is now giving me issues, I believe the root of the problem is the<br>
> my.cnf is a different version than the server itself.<br>
><br>
> When I attempt to login i.e.<br>
> #mysql -u root -p<br>
> etc<br>
> I receive the following error message:<br>
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket<br>
> '/var/run/mysqld/mysqld.sock' (2)<br>
><br>
> Can anyone help me<br>
</div></div><div class="Ih2E3d">> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <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>
> --<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>
><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>