🔪 WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
GNU General Public License v2.0
4.47k
stars
651
forks
source link
[Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.5' (This connection closed normally without authentication) #249
Open
semaforindia-waqar opened 4 years ago
Not able to connect my WordPress with MariaDB.
docker-compose.yml
version: '3'
services: db-headless: container_name: db-headless image: mariadb restart: unless-stopped environment:
wp-config.php
<?php /**
// MySQL settings - You can get this info from your web host // /* The name of the database for WordPress / define( 'DB_NAME', 'wp_headless' );
/* MySQL database username / define( 'DB_USER', 'wp_headless' );
/* MySQL database password / define( 'DB_PASSWORD', 'wp_headless' );
/* 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', '' );
/**#@+
/*#@-/
/**
/**
/ That's all, stop editing! Happy publishing. /
/* Absolute path to the WordPress directory. / if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', dirname( FILE ) . '/' ); }
/* Sets up WordPress vars and included files. / require_once( ABSPATH . 'wp-settings.php' );