• ketanco

    (@ketanco)


    I downloaded wordpress, uploaded under my website folder. created my database, user name in my host control panel. then i typed my website address and followed the installation screne where i first chose language. then i entered my database name username passwordd and host. everything normal right? but then wordpress cannot connect. i contacted my host and they blame me for wordpress file structure has been disturbed because there are no htaccess and wp config files… well, these files are not in original package right? they are on;ly created by wordpress automatically only after my site can connect to my database correct?

Viewing 3 replies - 1 through 3 (of 3 total)
  • well, these files are not in original package right? they are on;ly created by wordpress automatically only after my site can connect to my database correct?

    Correct.

    but then wordpress cannot connect.

    What specific error message are you getting?

    Hello @ketanco
    If your hosting provider is not helping you in this.
    You can do this thing
    — Copy your wp-config-sample.php file.
    — Paste into the root directory and name it as wp-config.php
    — Fill your appropriate data in the file directly like ‘database name’, ‘database password’ etc.

    Thank you!

    If I understood the original post correctly, the problem is NOT that WordPress is unable to create the configuration file. Rather, WordPress is unable to connect to the database. If this is correct, then it doesn’t matter if you use the installer to generate the wp-config.php file, or if you create one manually: you’ll still get the same error.

    The problem, as reported, is clearly database-related. This could be that WordPress is unable to reach the database server at all, or that it can reach the server but is unable to select and use the configured database (which would be due to incorrect credentials/permission). That’s why I asked for the specific error message to understand this better.

    That reminds me…

    created my database, user name in my host control panel.

    Did you remember to grant the necessary database privileges to the user you created? This step is often overlooked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.