# AMFPHP help

**URL:** https://forum.kirupa.com/t/amfphp-help/322094
**Category:** flash
**Created:** [May 10, 2011, 4:42pm UTC](https://forum.kirupa.com/t/amfphp-help/322094 "2011-05-10T16:42:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)
#### Post date: [May 10, 2011, 4:42pm UTC](https://forum.kirupa.com/t/amfphp-help/322094/1 "2011-05-10T16:42:10Z")

</div>

Hopefully one of you guys can help me, because this is driving me up the wall.

This is my first attempt at doing any serverside stuff, I’m using this guy’s tutorial - [AS3 – AMFPHP High Score Database – ZombieFlambe](http://www.zombieflambe.com/actionscript-3/as3-amfphp-high-score-database/)

I’ve uploaded AMFPHP 1.9, I’ve created a mySQL database on my server, updated the HighScores.php file with the DB location, username, password etc, yet it just doesn’t work.

Here is the error message I get when I test the HighScores service.

> (Object)#0  
> message = “faultCode:AMFPHP\_RUNTIME\_ERROR faultString:‘mysql\_query(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ faultDetail:‘/homepages/20/account\_name/htdocs/superdrift/amfphp/services/HighScores.php on line 40’”  
> name = “Error”  
> rootCause = (null)

Any of you guys have an idea of what’s going wrong and how I can fix it?

Cheers,  
RumbleSushi
