Problems connecting to mysql using phpMyAdmin
Ryan Schmidt
ryandesign at macports.org
Fri Nov 19 01:40:13 PST 2010
The most prominent error in that web page seems to be:
Strict standards: Non-static method ... should not be called statically
A little Googling reveals that this probably means you have requested E_STRICT error reporting from PHP, but that this web application is not coded to E_STRICT standards. Either upgrade to a newer version of Joomla that has been fixed to comply with strict coding standards (if such a thing exists), or don't ask PHP to report strict coding standard violations to you.
Usually this is the error_reporting setting php.ini. Make sure it does not contain "| E_STRICT". But I hear that Joomla also has its own error reporting setting somewhere that you may need to change (either instead or additionally, I'm not sure). You may need to ask the Joomla folks if you need further assistance with this.
On Nov 19, 2010, at 03:22, Ali A Samii wrote:
> 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).
>
> <Akeeba Backup Installer.webarchive.zip>
>
> 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
>>
>>
>
More information about the macports-users
mailing list