Page 1 of 1

XAMPP Table 'test.test' doesn't exist

PostPosted: 07. January 2016 06:03
by tinycubes
I just setup a basic PHP and MySQLi script:

Code: Select all
$db = mysqli_connect('localhost','root','password','test');

 $query1 = 'SELECT name, username FROM test;';
 $result1 = mysqli_query($db,$query1);


I received the following error:

Table 'test.test' doesn't exist


I'm simply using the default `test` table provided by XAMPP, using `root` user with `password` for a temporary password placeholder and made no changes to the permissions or anything else.

What am I missing?

Re: XAMPP Table 'test.test' doesn't exist

PostPosted: 07. January 2016 07:54
by Altrea
By default there is only a database test, there are no tables in it.