0

I am starting to use Flash Builder for php to make an app. I have started with this very good example suggested by a user.
http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(php)_application.htm

On Step 11 running the PHPUnit i am getting this error

PHPUnit_Framework_Error_Warning:mysqli_connect()[<a href='function.mysqli-connect'>function.mysqli.connect</a>]:MySQL server has gone away

I am understanding that it cant connect to MySQL but i dont know how to fix it. Any help?

These are the latest errors i am getting on phpadmin

15  
Database Error

Today, 23:11:05

phpMyAdmin

Function mysql_query() returned false
    show    


    16  
Database Error

Today, 23:11:05

phpMyAdmin

Function mysql_query() returned false
    show    


    17  
Slow Request Execution

Today, 23:11:05

phpMyAdmin

Request to http://localhost:100/phpMyAdmin/ took 2505ms
    show    
2
Contributors
2
Replies
21
Views
2 Years
Discussion Span
Last Post by SimonIoa
0

MySQL server has gone away

That usually means that your connection timed out. What exactly is your PHP code doing?

Edited by pritaeas

0

Its connects to the database

public $username = "root";
    public $password = "";
    public $server = "localhost";
    public $port = "3306";
    public $databasename = "testdrive_db";
    public $tablename = "employees";
    public $connection;
    public function __construct ()
    {
        $this->connection = mysqli_connect($this->server, $this->username, 
        $this->password, $this->databasename, $this->port);
        $this->throwExceptionOnError($this->connection);
    }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.