dpDesignz
Member
Posted 1 year ago #
I get this error when creating a database on Bluehost
Can’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the roctrust_wpcontent database.
Are you sure it exists?
Does the user roctrust_admin have permission to use the roctrust_wpcontent database?
On some systems the name of your database is prefixed with your username, so it would be like username_roctrust_wpcontent. Could that be the problem?
If you don't know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.
Can anyone help?
dpDesignz
Member
Posted 1 year ago #
Ok I have it fixed. You need to use the database manager to create it, but now I can't get this to work. http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory. have it working on a GoDaddy site, but tried this and it didn't work
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./build/wp-blog-header.php');
?>
Can anyone help?
bh_WP_fan
Member
Posted 1 year ago #
What isn't working? Do you have a link to it? The way you have it, if you followed the linked article correctly, your site should now be running from a directory named build/
dpDesignz
Member
Posted 1 year ago #
@bh_WP_fan. I'm not sure why, but it works now. It can't of been cache because it was literally new hosting and domain. :).
Thanks anyway