• Isnt it possible to connect a localhost website to a hosted database…? Because I cant get it work, I have checked that the table names does not go over each other and that the connection information is correct, but still I cant get it work…? Why is that?

    The section for database connection in the wp-config.php file looks like this:

    /** The name of the database for WordPress */
    define('DB_NAME', '*my_database*');
    
    /** MySQL database username */
    define('DB_USER', '*my_username*');
    
    /** MySQL database password */
    define('DB_PASSWORD', '*my_password*');
    
    /** MySQL hostname */
    define('DB_HOST', '*my_host*');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    Every field is correct, of course I changed them here to not give out my database connection to everyone… ??

    I have checked with my host that the database is up running, is there something else I should check with them? They got 24/7 live support, so just tell me! ?? (One.com)

    The reason I want the database to be hosted and not the website is because I want to develop a plugin, but I dont want to go trough FileZilla or something familiar to upload files to the website. But I still dont want to host the database ?? ??

Viewing 1 replies (of 1 total)
  • From my knowledge of WordPress, you can’t have have a localhost website running on a database on the remote server. Databases works with files hosted on thesame server with it.

    I use XAMPP to develop my sites locally and that is why XAMPP comes with phpmyadmin so u can have your database running locally too as you develop.

    Why not develop everything on your localhost, and when done, get to upload via ftp or the file manager of your cpanel… just the only way out ??

Viewing 1 replies (of 1 total)
  • The topic ‘Error Establishing Connection on Hosted Database’ is closed to new replies.