wordpress - Error establishing a database connection on my newly hosted wp website -


i in difficult situation..i dont have knowledge in hosting websites far. have developed wordpress website , trying host in presently woking server working domain. before static website. host provider www.networksolutions.com.. did hosting was,

1. exported database working website in local server (xampp). 2. exported database file opened dreamweaver , edited localhost , repalce domain name (www.abc.com) say.. 3.edited wp_config file below      define('db_name', 'my_db');    /** mysql database username */   define('db_user', 'my_usernm'); //before 'root'    /** mysql database password */  define('db_password', 'my_pass'); //before null    /** mysql hostname */   define('db_host', 'www.abc.com'); //before 'localhost'      4.uploaded database file in web server , transfer website folder in /htdocs using filezilla   5.redifined domain pointing old folder new folder jst uploaded   www.oldabc.com -> htdocs/    www.abc.com -> htdocs/abc/ <-here abc folder contains whole files ,  folders of wordpress site.   6. databse uploaded sucsessfully dont know how link    thespecific ftp account/folder.  have put username , password in  wp_config file same ausername ,   password uploading database phpmyadmin host window.   

please help!

the problem may here:

/** mysql hostname */ define('db_host', 'www.abc.com'); //before 'localhost'

databases hosted @ 'localhost' not @ domain.

try reverting to:

/** mysql hostname */ define('db_host', 'localhost');

more detailed answer

  1. i suggest create default installation of wp -- including stock database -- @ networksolutions. take care of configuring everything: site url, site home, database user, dbase pw, etc.

  2. download theme local install, , upload new site.

  3. then in existing local wp install, go admin > tools > export , select want export new site.

  4. go new site, admin > tools > import, , import exported. using wp import/export should eliminate overwriting in new database should not overwritten local install (site url, home url, users, etc.)


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -