I work with kitematic. I downloaded mysql and wordpress.
This the configuration of mysql
IP&PORTS
3306/tcp localhost:32820
33060/tcp localhost:32819
Settings
MYSQL_ROOT_PASSWORD XXX
MYSQL_DATABASE wordpress
MYSQL_PASSWORD wordpress
MYSQL_USER wordpress
Configuration wordpress
ports
80 localhost:32822
localhost
Settings
WORDPRESS_DB_PASSWORD XXX
WORDPRESS_DB_HOST localhost:3306
WORDPRESS_DB_USER wordpress
WORDPRESS_DB_NAME wordpress
File wp-config.php
define( ‘DB_NAME’, ‘wordpress’);
/** MySQL database username */
define( ‘DB_USER’, ‘root’);
/** MySQL database password */
define( ‘DB_PASSWORD’, ‘’);
/** MySQL hostname */
define( ‘DB_HOST’, ‘localhost:3306’);
/** 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’, ‘’);
File /etc/hosts
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
I get this error trace
WordPress not found in /var/www/html - copying now…
Complete! WordPress has been successfully copied to /var/www/html
[30-Apr-2019 14:30:37 UTC] PHP Warning: mysqli::__construct(): (HY000/2002): No such file or directory in Standard input code on line 22
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
MySQL Connection Error: (2002) No such file or directory
WARNING: unable to establish a database connection to ‘localhost:3306’
continuing anyways (which might have unexpected results)
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.17.0.2. Set the ‘ServerName’ directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.17.0.2. Set the ‘ServerName’ directive globally to suppress this message
[Tue Apr 30 14:31:04.667463 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.17 configured – resuming normal operations
[Tue Apr 30 14:31:04.667573 2019] [core:notice] [pid 1] AH00094: Command line: ‘apache2 -D FOREGROUND’
172.17.0.1 - - [30/Apr/2019:14:32:31 +0000] “GET / HTTP/1.1” 500 558 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Kitematic/0.17.6 Chrome/59.0.3071.115 Electron/1.8.8 Safari/537.36”
172.17.0.1 - - [30/Apr/2019:14:34:45 +0000] “GET / HTTP/1.1” 500 558 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36”
172.17.0.1 - - [30/Apr/2019:14:34:45 +0000] “GET /favicon.ico HTTP/1.1” 200 229 “http://localhost:32822/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36”
172.17.0.1 - - [30/Apr/2019:14:35:22 +0000] “GET / HTTP/1.1” 500 558 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Kitematic/0.17.6 Chrome/59.0.3071.115 Electron/1.8.8 Safari/537.36”
172.17.0.1 - - [30/Apr/2019:15:10:03 +0000] “GET / HTTP/1.1” 500 558 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Kitematic/0.17.6 Chrome/59.0.3071.115 Electron/1.8.8 Safari/537.36”
172.17.0.1 - - [30/Apr/2019:15:10:14 +0000] “GET / HTTP/1.1” 500 558 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Kitematic/0.17.6 Chrome/59.0.3071.115 Electron/1.8.8 Safari/537.36”
How can I fix this error?