I have MySQL installed in the /usr/local/bin/. I need to be able to connect to the MySQL database, however, the mySQL gem cannot connect to my database, and it seems that it is looking for the database in the /opt folder.
Can anyone suggest how I can fix this?
Some thoughts about this:
"/etc/init.d/mysql status"or simply connecting to the database with the command line client."localhost"when running on the same machine and is then using either sockets or tcp connections to connect to the database, so the/optfolder message you posted seems weird.Please provide more information.