Update: I EQUIPPED an old mysql process that is running and causes some confusion. Now I think that I only have a new version (5.1.40). BUT, this indicates an invalid data file. This points to the default installation data file, and I would like it to point to an existing data file in /var/mysql . Here is the part /etc/my.cnf
this points to the old mysql.sock. I can't seem to find the new MySQL installation in the directory tree?!? if only he is unclear somewhere.
Anyone help? Basically I installed a newer MySQL and now I need to run this new version with my existing data. And sort this thing out mysql.sock ....
I recently updated MySQL on Mac OS X Server, and I have a hell of a time connecting to it from a rails application. or sequentially from the command line, for that matter.
I am sure this is a clear mistake on my part, but I only have moderate command line experience, so hopefully someone can help ...
also due to the fact that my rails application can no longer connect. Failed to connect via /tmp/mysql.sock , but I'm not sure why it looks there, because there is no mysql.sock in / tmp, and I don't know what / where it should be ....
Edit: adding results from mysql_config --sockets
$ mysql_config --sockets Usage: /usr/local/mysql/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/local/mysql/include -g -Os -arch ppc -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL] --include [-I/usr/local/mysql/include] --libs [-arch ppc -L/usr/local/mysql/lib -lmysqlclient -lz -lm -lmygcc] --libs_r [-arch ppc -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm -lmygcc] --plugindir [/usr/local/mysql/lib/plugin] --socket [/tmp/mysql.sock] --port [0] --version [5.1.40] --libmysqld-libs [-arch ppc -L/usr/local/mysql/lib -lmysqld -ldl -lz -lm -lmygcc]
Edit2 which mysql_config
$ which mysql_config /usr/local/mysql/bin/mysql_config
source share