Moze biti svasta, citam na drugim forumima, mozda ti je ime baze pogresno. Tj. u wp-config si stavio da ide na bazu, mojsajt1, a u MySQL-u si napravio bazu mojsajt, i onda ne radi.
First, try contacting the hosting provider if the database server is online / if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, if the hosting package is set to Windows and not Linux, etc .
- double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.
-Then check that you don't need to change the database host from "localhost" to something else. You can get that info from your hosting provider.
-Check you have actually created a database with the same database name as is in your wp-config.php file.
-Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.
Ako si na svom kompu postavio WP, imas server onda nema sta da kontaktiras provajdera naravno
Nadjes wp-config.php i i proveris da li su ti database username, pass i name dobri, tj. da li se poklapaju. Ako ne znas kako to da uradis, potrazi na Google. Nemoj ovaj fajl mnogo da cackas, mada i ako zeznes nesto, uvek mozes da nadjes novi
I da, pogledaj da ti je database host podesen na localholst u wp-config.php.
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
Ove linije trazis, i menjas sve osim 'localhost' naravno sve vrednosti ostaju izmedju ' '.
I ne otvaraj wp-config sa Wordom ili nekim takvim programom, vec koristi obican Notepad ili neki text editor koji koristis za kodiranje. Word, WordPad i slicno, ne.
Kada to sredis, trebao bi da imas nesto ovako:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'moja_baza' );
/** MySQL database username */
define( 'DB_USER', 'mojusername' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password123' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
Za ostale informacije poseti:
http://codex.wordpress.org/Editing_wp-config.php