Thread Starter
b88
(@b88)
Thanks for your suggestion.
The site I am working with is :http://maisondetaka.jp/
Both URLs in the general setting area were: http://maisondetaka.jp/maisondetaka
So I deleted the last section and saved.
In the link that you posted, the file wp-options URL field was already http://maisondetaka.jp/
I tried to change it back to http://maisondetaka.jp/maisondetaka in both fields,
but it resulted in “Error in establishing a database connection”
Am I doing something wrong?
Do I need to change FTP also?
Are you sure it wasn’t http://maisondetaka.jp/maisondetaka/
…the additional “/” on the end?
Thread Starter
b88
(@b88)
Thanks,
I tried that there now, but no change.
A slightly different message appears for
http://maisondetaka.jp/maisondetaka/wp-admin/
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at mysql504.heteml.jp. This could mean your host’s database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
To move WordPress installation from subdirectory to root directory is easy. Simple steps are as follow:
– Move all your data from sub-directory to root directory of your domain
– Go to phpMyAdmin and update both URLs (site and home) from wp_options table.
– Save permalink settings as it is.
If you still receive database error, you will have to make sure that database settings are correct in your wp-config.php file.
You can solve this by wp-config file. thank you
@b88… my best advice is to contact your host, explain the situation and ask for their assistance. The techs should be able to reset everything and send you login info.
@Kailash… there was no move from root to sub – b88 changed the urls in admin.
@ftfarhad…
You can solve this by wp-config file. thank you
Perhaps you would like to elaborate?
@b88
@neotechnomad Yah! Why not?
define( 'WP_HOME' , 'http://yoursiteurl.com' );
define( 'WP_SITEURL' , 'http://yoursiteurl.com' );
add this two line to wp-config.php file, if it work. Else, you can try wp database’s table <b>wp-options</b>. Thanks again