Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joejac

    (@joejac)

    Thank you very much @bcworkz I will try your recommendations.
    Best regards.

    Thread Starter joejac

    (@joejac)

    Hello and thanks for your time to answer @bcworkz Following is the content of wp-config.php file with the line commented, is still giving the error:

    Error establishing a database connection

    But the user can connect fine to the database with the test script.
    I appreciate if you can take a look and find if I have an error in the config file.
    Thanks and regards.

    wp-config.php

    <?php
    /**
     * The base configuration for WordPress
     *
     * The wp-config.php creation script uses this file during the
     * installation. You don't have to use the web site, you can
     * copy this file to "wp-config.php" and fill in the values.
     *
     * This file contains the following configurations:
     *
     * * MySQL settings
     * * Secret keys
     * * Database table prefix
     * * ABSPATH
     *
     * @link https://wordpress.org/support/article/editing-wp-config-php/
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'db_wordpress');
    
    /** MySQL database username */
    define('DB_USER', 'dbuser');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password-string');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** 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', '' );
    define('WPLANG', 'es_ES');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY', 'qGtX3O11P8aSUvclem2QSGKdNYsDysobwt5fhlXZlvlpeuROSdV5GUbmufhHIpUV');
    define('SECURE_AUTH_KEY', '3J6Tld8G1zlhADbLuagubGp7iWZVgv71ZYOk50HXRWZqnOmj55mJFCTrrwRGTMim');
    define('LOGGED_IN_KEY', 'VXNwtnfighP2K0ZzE5LH6RAO2hIW78L0INr1Qy0DIuCSmZYzqkjPxwD84FfVbKvd');
    define('NONCE_KEY', 'Sp7x5cyoLv4uVlxnX99fDXK04lWYFY6R1zFQhXCdTHvCFAN6zl8m2UR6AlXFtDB9');
    define('AUTH_SALT', 'YrphircWuUErrAxiPQcoUlASrWCfJNNL2ApgQXPlGcl4VXu7ct6f2gJlMsUqSVcf');
    define('SECURE_AUTH_SALT', 'YyoLvCc0t2BSmYOWP8ann9LkLWAcGCzQXRRE8dSZvlh1pm9Iw4nY8soAfKgnCwcD');
    define('LOGGED_IN_SALT', 'kzTQoptGhXeSCrNHKBpa6CQyZW5XW3x0qo0EvLLr1WcGTst71PcuKdyUQFw6ebNt');
    define('NONCE_SALT', '74VCe5lkNfYVA5g64WdqpEoKxhvbI0KWlGeK2CdJylo7I07qynphjRgEmwVmSpB6');
    
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each
     * a unique prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix = 'wp_';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     *
     * For information on other constants that can be used for debugging,
     * visit the documentation.
     *
     * @link https://wordpress.org/support/article/debugging-in-wordpress/
     */
    define( 'WP_DEBUG', true );  
    define( 'FS_METHOD', 'direct' );
    
    define('WP_ALLOW_MULTISITE', true);
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    /* define('DOMAIN_CURRENT_SITE', 'mynewdomain.com'); */
    define( 'WP_HOME', 'http://mynewdomain.com' );
    define( 'WP_SITEURL', 'http://mynewdomain.com' ); 
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('ENABLE_CACHE', false); 
    define('ALLOW_UNFILTERED_UPLOADS', true);
    
    /* That's all, stop editing! Happy publishing. */
    
    /** Absolute path to the WordPress directory. */
    if ( ! defined( 'ABSPATH' ) ) {
    	define( 'ABSPATH', __DIR__ . '/' );
    }
    
    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . 'wp-settings.php';

    `

    • This reply was modified 4 years, 4 months ago by joejac.
    • This reply was modified 4 years, 4 months ago by joejac.
    • This reply was modified 4 years, 4 months ago by joejac.
Viewing 2 replies - 1 through 2 (of 2 total)