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
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
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)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now