Problems connecting to mysql using phpMyAdmin

Ali A Samii samii at me.com
Fri Nov 19 01:22:41 PST 2010


OK, as it seems to be par for the course for me, I now am having another issue.

I am trying to restore a joomla installation using Akeeba Backup.  Should be very straight-forward. It uses a php script, runs the extortion, then runs the installer. I've done it many times without a hiccup. Now, I have a hiccup. The extortion happens without any errors. Then, when I run the installer, I get the attached page (zipped webarchive since unzipped it is too large to pass).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Akeeba Backup Installer.webarchive.zip
Type: application/zip
Size: 74110 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20101119/f7e9b87d/attachment.zip>
-------------- next part --------------


Any advice?

On 19 Nov, 2010, at 09:24 , Ryan Schmidt wrote:

> Ok, so in both cases, PHP is looking for the MySQL socket in /tmp/mysql.sock. That is not the default location for the MySQL socket; you should edit your php.ini and tell it where the MySQL socket actually is. When you installed the php5-mysql port it should have printed this message for you:
> 
> 
> To use mysqlnd with a local MySQL server, edit /opt/local/etc/php5/php.ini and set
> mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket
> to /opt/local/var/run/mysql5/mysqld.sock
> 
> 
> 
> 
> 
> On Nov 19, 2010, at 02:17, Ali A Samii wrote:
> 
>> Well, from the browser, I got the following when I ran the phptest.php
>> 
>> 
>> ( ! ) Warning: mysql_connect() [function.mysql-connect]: [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in /Volumes/External_Storage/www/phptest.php on line 2
> 
>> and from the command line, the result was:
>> 
>> Alis-iMac:www ali$ php phptest.php
>> PHP Warning:  mysql_connect(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in /Volumes/External_Storage/www/phptest.php on line 2
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2659 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20101119/f7e9b87d/attachment.bin>


More information about the macports-users mailing list