sgs Posted December 29, 2014 Posted December 29, 2014 Sir, I've created a php file which creates a MySQL table named 'features' in the 'sgs_sgpaste' database. But when I'm running the php file to create the table, I'm getting an error. The error is:Unable to create 'sgp_features' table:Table 'sgs_sgpaste.features' doesn't existSo, I want to know that, why these error occures! And how I can solve the problem. Here is the url of the file: www.sgservices.tk/sgpaste/install/create_tables.php Quote
Ice IT Support Posted January 2, 2015 Posted January 2, 2015 Can you post the code of the file? Also ensure your MySQL username and password is correct, has the correct permissions, and you are connecting to localhost. 1 Quote
sgs Posted January 3, 2015 Author Posted January 3, 2015 Ok, these is the variables which are included in the "index.php" file to include other files easily$cnf = "/home/sgs/config/" (directory)$sgp = "/home/sgs/public_html/sgpaste/" (directory)here is my three files:1) http://www.pastebin.com/w6DYGxn7 (index.php: "connection.php" and "create_tables.php" file was included here)2) http://www.pastebin.com/nwRt0sam (create_tables.php: this file was included in the "index.php" file)3) http://www.pastebin.com/F9pMr3Jh (connection.php: these file was included in the "index.php" file) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.