MySQL Configuration
Posted: Tue Sep 24, 2019 2:53 pm
I intend to install Meteotemplate on my own server (LAN only), without Internet access. This server is hosted on a Raspberry Pi 3 (Raspbian Buster), which runs LAMP. (Uses Apache).
For the structure of folders and files, I followed the instructions of the Wiki.
I assume that this structure is the right one for an Apache server, because I get to show the script setup.php in Chrome and Chromiun browsers, from either of these two addresses
http://192.168.1.123/template/install/setup.php
http://meteomungi/template/install/setup.php
I run "Server Check" and it tells me everything is correct. But, when I run "Check MySQL", it returns this error message:
"Debugging error number: 2002
Debugging error: php_network_getadress: getadd info failed: Name or service not know."
Some data from the MariaDB/MySQL configuration for the root user.
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
+--------------------+
+----------------------+
| @@datadir |
+----------------- ----+
| /var/lib/mysql |
+--------------- ------+
Current user. root@localhost
Protocol version: 10
Connection: Localhost via UNIX socket
UNIX socket: /var/run/mysqld/mysqld.sock
I run phpMyAdmin with Username: phpmyadmin (this is the real user name I use) and Password: [mypassword].
From the SQL tab, I made two queries, with these results;
- hostname = meteomungi (matches my RPi host name)
- port = 3306
I don't know how to make other useful queries.
In the MySQL parameters I've done a lot of tests.
For Host address, I have tested
http://meteomungi
http://192.168.1.123 (my static IP)
http://localhost
http://127.0.0.1
The previous four, followed by 3306 (e.g. http://meteomungi:3306)
The previous four, followed by /template (e.g., http://meteomungi/template)
and a few more combinations, which I don't remember.
For User, I have tried: "root", "pi" and "phpmyadmin"
Pasword, I've always used the same password (all RPi server passwords are the same).
I have consulted dozens of websites and also in the forum, especially this threads:
http://meteotemplate.com/forum/viewtopic.php?f=49&t=456
viewtopic.php?t=1383
The "audum" user's website is working properly and, I think, it runs on a Raspberry Pi server, with Internet access.
I have reviewed several configuration files, both MariaDB and MySQL, but my knowledge of Linux is very limited and those of web servers, almost null. As a consequence, I still can't find the solution.
For the structure of folders and files, I followed the instructions of the Wiki.
I assume that this structure is the right one for an Apache server, because I get to show the script setup.php in Chrome and Chromiun browsers, from either of these two addresses
http://192.168.1.123/template/install/setup.php
http://meteomungi/template/install/setup.php
I run "Server Check" and it tells me everything is correct. But, when I run "Check MySQL", it returns this error message:
"Debugging error number: 2002
Debugging error: php_network_getadress: getadd info failed: Name or service not know."
Some data from the MariaDB/MySQL configuration for the root user.
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
+--------------------+
+----------------------+
| @@datadir |
+----------------- ----+
| /var/lib/mysql |
+--------------- ------+
Current user. root@localhost
Protocol version: 10
Connection: Localhost via UNIX socket
UNIX socket: /var/run/mysqld/mysqld.sock
I run phpMyAdmin with Username: phpmyadmin (this is the real user name I use) and Password: [mypassword].
From the SQL tab, I made two queries, with these results;
- hostname = meteomungi (matches my RPi host name)
- port = 3306
I don't know how to make other useful queries.
In the MySQL parameters I've done a lot of tests.
For Host address, I have tested
http://meteomungi
http://192.168.1.123 (my static IP)
http://localhost
http://127.0.0.1
The previous four, followed by 3306 (e.g. http://meteomungi:3306)
The previous four, followed by /template (e.g., http://meteomungi/template)
and a few more combinations, which I don't remember.
For User, I have tried: "root", "pi" and "phpmyadmin"
Pasword, I've always used the same password (all RPi server passwords are the same).
I have consulted dozens of websites and also in the forum, especially this threads:
http://meteotemplate.com/forum/viewtopic.php?f=49&t=456
viewtopic.php?t=1383
The "audum" user's website is working properly and, I think, it runs on a Raspberry Pi server, with Internet access.
I have reviewed several configuration files, both MariaDB and MySQL, but my knowledge of Linux is very limited and those of web servers, almost null. As a consequence, I still can't find the solution.