SQL Error on Install to Subdirectory
-
I’m reinstalling WP after an experimental install that worked fine (after some help here). This time, anticipating multiple future blogs I installed it in a subdirectory. The path is like: https://jcm2044.net/WP1/BLOG1/
So far as I could tell I did not need to alter the wp-config.php file from before, although I decided to anticipate future installations by changing the table prefix from the default.
wp-config.php now reads (with security editing of the userid and password
<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘ABC_WP’); // The name of the database
define(‘DB_USER’, ‘DEF’); // Your MySQL username
define(‘DB_PASSWORD’, ‘GHIJ’); // …and password
define(‘DB_HOST’, ‘mysql8.ixwebhosting.com’); // 99% chance you won’t need to change this value// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘AT_ ‘; // Only numbers, letters, and underscores please!// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
// to enable German language support.
define (‘WPLANG’, ”);/* That’s all, stop editing! Happy blogging. */
define(‘ABSPATH’, dirname(__FILE__).’/’);
require_once(ABSPATH.’wp-settings.php’);
?>When I get to step-2 of the installation I now get a page full of errors like the following:
WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘usermeta ( umeta_id bigint(20) NOT NULL auto_increment, use]
CREATE TABLE AT_ usermeta ( umeta_id bigint(20) NOT NULL auto_increment, user_id bigint(20) NOT NULL default ‘0’, meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (umeta_id), KEY user_id (user_id), KEY meta_key (meta_key) )What have I done to try and fix the problem?
1) Deleted the old database and created the new one
2) Checked that my user permissions are full admin
3) Forced a reset of the passwordNone of these worked.
– Does WP not allow multiple subdirectories such as I’ve created?
– Do I have to change a path variable somewhere?Suggestions?
Thanks
Jim Mitchell
- The topic ‘SQL Error on Install to Subdirectory’ is closed to new replies.