good
Подключение к версии сервера: 11.6.2-mariadb-log MariaDB Server с другого Mac работает, с теми же учетными данными.
подключение к тому же серверу из других приложений на моем Mac, используя те же учетные данные, такие как DataGrip, Beaver, ... < /p>
-< /p>
Оба Mac-Sequoia 15.3 < /p>
Код: Выделить всё
PHP 8.4.3 (cli) (built: Jan 15 2025 01:03:17) (NTS)
Copyright (c) The PHP Group
Built by Homebrew
Zend Engine v4.4.3, Copyright (c) Zend Technologies
with Zend OPcache v8.4.3, Copyright (c), by Zend Technologies
Server version: Apache/2.4.63 (Unix)
Server built: Jan 20 2025 19:35:41
Код вызван из этого оператора:
Код: Выделить всё
$connection = mysqli_connect($DBHOST, '***', '***', '***');
< /code>
Сбой с этой ошибкой на клиенте: < /p>
PHP Warning: mysqli_connect(): Error while reading greeting packet. PID=1123 in config.php on line 54
[php:error] [pid 1123] [client 127.0.0.1:51713] PHP Fatal error: Uncaught mysqli_sql_exception: MySQL server has gone away in /opt/darkhold/config.php:54
Stack trace:
#0 /opt/darkhold/config.php(54): mysqli_connect('ServerIP', 'darkhold', Object(SensitiveParameterValue), 'darkhold')
#1 /opt/darkhold/global.php(2) (...)
< /code>
и это на стороне сервера: < /p>
[Warning] Aborted connection 3473 to db: 'unconnected' user: 'unauthenticated' host: 'ServerName' (This connection closed normally without authentication)
Подробнее здесь: https://stackoverflow.com/questions/794 ... t-from-osx