News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

"No such file or directory" in Mac OS X

Started by NanoSector, March 01, 2012, 10:06:23 AM

Previous topic - Next topic

NanoSector

Hi there :)

Since some of you know, I own an iMac.
Well, I wanted to start fresh once more, so I restored the operating system to it's original state.

Now ever since, I'm not getting MySQL to work for me.
Everytime I try to install SMF (version 2.0.2) again, I get:
Quote
!!
Critical Error!
Cannot connect to the database server with the supplied data.

If you are not sure about what to type in, please contact your host.
No such file or directory

Since I am the host, I cannot seem to find the problem.
Reinstalled MySQL, rebooted the web server (Apache 2) a few times, even rebooted the system once, no luck.

I entered this details:
Type: MySQL
Host: localhost (SMF added :3306 to it)
User: root
Pass: (none)
Database: smf
Prefix: smf_

For the record, phpMyAdmin doesn't work either and it says:
QuoteFout

MySQL retourneerde: 
#2002 - De server reageert niet (of de MySQL-server heeft het socket niet juist ingesteld)

Which translates in:
QuoteError

MySQL said:
#2002 - The server didn't respond (or the MySQL-server didn't correctly setup the socket)

Anybody knows what's wrong?
(and anybody knows how to fully erase the contents of the OS X partition, the restore kept my data...)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

#1
Fixed by changing my php.ini.

For anyone looking for a fix for Mac OS X 10.7.3 Lion:

Open your php.ini.default in /etc (open a Finder window > Go > Go to directory > type "/etc").
Search for "mysql.default_socket" in your text editor.
Find the one without "pdo" in front of it.
Then, change the path the setting has into "/tmp/mysql.sock".

This worked for me :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: