• So im new to wrodpress and all of this.

    I have set up a host for my blog https://www.munin.blog
    i have a ftp, filezilla

    but i ant get wordpress to install.

    when i try i just get the error message above
    saying that the problem is either with my username/ password
    hostname
    or that the databse is not running.

    Im not sure how to fix this.
    My username is muninblog
    and my databasename is muninblog
    the hostname would be the MySQL server?

    so it would look like this? is something here terribly wrong?
    thank you for the help.

    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'xxxxx');
    
    /** MySQL database username */
    define('DB_USER', 'xxxxx');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'hereihavemypwset');
    
    /** MySQL hostname */
    define('DB_HOST', 'muninblog.mysql.domeneshop.no');
    
    • This topic was modified 7 years, 11 months ago by Jan Dembowski.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Atiram,

    your DB_HOST can be set to localhost, as (I assume) only your wordpress installation on the same server will access this database. Do you have php-myadmin? If so, could you check the configuration as explained in Installing wordpress using phpmyadmin

    Good luck,
    Thomas

    Thread Starter atiram

    (@atiram)

    i shall try set it to localhost then.

    php-myadmin? I dont know what that is?
    im hosting via domaninenameshop/ or domeneshop as it is called in norwegian
    they dont use cpanel (or php-myadmin, i think its some sort of controlpanel?)
    but their own control panel

    kind regards

    You can ask your web hosting company for these information.
    They will surely know how to setup WordPress which is a popular software.
    Maybe they have a FAQ section for this.

    Thread Starter atiram

    (@atiram)

    i have already sent them a mail, but htey have a response time of 1-2 days.
    they do no have any 1 click install for sure, and ive tried reading up oon their faq and its not really helping.

    when i use filezilla the tutorials says i should automaticly get a
    www folder or public folder,… but i only get a / folder

    i dont know,..ive been tryign to get around this somehow all day, and it kinda just feels like im taking steps backwards.

    i really regret hosting with this provider,…and i cant even move the domaine to another hsot for 60 days now so im stuck with it aswell. was pondering just moving it to a provider who had a 1 click install and used cpanel,..

    Interesting enough, when I try to open the muninblog.mysql.domeneshop.no from a browser, request times out… Check if there’s even a connection to DB by making a simple test php script

    Create a new file called testconnection.php and paste the following code in it:

    <?php
    $link = mysql_connect(‘localhost’, ‘root’, ‘password’);
    if (!$link) {
    die(‘Could not connect: ‘ . mysql_error());
    }
    echo ‘Connected successfully’;
    mysql_close($link);
    ?>

    Make sure to replace the username and password. If the connected successfully, then it means that your user has sufficient permission, and there is something else that is wrong. Go back to your wp-config file to make sure that everything there is correct (re-scan for typos).

    https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error: establishing database connection’ is closed to new replies.