06.06.2016, 10:13
Well there you go, MySQL is telling you exactly what is wrong. You haven't select a database. You'll need to select the database you've created first.
Are you using phpmyadmin? If so, then just click on the database you wish to create the table under, and then select "Query" in the top navigation. Then run your SQL query from above.
If you're not using phpmyadmin, then you'll need to execute an SQL query to select the database first. Above your SQL query add the following:
Obviously replace DATABASE_NAME with the actual name of your database.
EDIT: In terms of selecting the database from pawno, refer to the person's post above mine^^
Are you using phpmyadmin? If so, then just click on the database you wish to create the table under, and then select "Query" in the top navigation. Then run your SQL query from above.
If you're not using phpmyadmin, then you'll need to execute an SQL query to select the database first. Above your SQL query add the following:
Код:
USE DATABASE_NAME;
EDIT: In terms of selecting the database from pawno, refer to the person's post above mine^^