Yritin asentaa wordpressiä, mutta kun menen
http://users.metropolia.fi/~tuomot/wordpress/wp-admin/install.php
tulee erroria
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 DB_HOST. 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.
Yritin etsiä apuja, mutta kun en löytäny mitään kun en ole vielä ihan sinut näitten MySQL jne juttujen kanssa.
Alla wp-config.php ja config.php mitä käytän:
config.php
<?php
define('DB_NAME', 'tuomot'); // the name of the db
define('DB_USER', 'tuomot'); // your MySQL username
define('DB_PASSWORD', 'salasanapoistettu'); // .. passwd
define('DB_HOST', 'https://amme.metropolia.fi/mysql/'); // host
// you can have multiple installations in one db if you give each a unique prefix
$table_prefix = 'yourdbprefix_'; // Only numbers, letters, and underscores
?>
wp-config.php:
<?php
include('/~/config.php');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define ('WPLANG', '');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
define ('WPLANG', '');
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(_FILE_) . '/');
require_once(ABSPATH . 'wp-settings.php');
?>