Temat: Kalkun - problem z podłączeniem do bazy - mysqli_driver.php
Taki komunikat
"
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): No such file or directory
Filename: mysqli/mysqli_driver.php
Line Number: 203
"
się pojawia w przeglądarce
kalkun/application/config/database.php
$db['default']['hostname'] = "localhost";
// MySQL
$db['default']['username'] = "root";
$db['default']['password'] = "dbpass";
$db['default']['database'] = "kalkun";
$db['default']['dbdriver'] = "mysqli";
z konsoli
root@sms2:/tmp/log# mysql -h localhost -u root -D kalkun -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 24
Server version: 10.2.31-MariaDB Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [kalkun]>
Czy jeszcze coś pominąłem ?