Search
 
SCRIPT & CODE EXAMPLE
 

PHP

mysqli_real_connect(): (hy000/2002): no such file or directory

Locate config.sample.inc.php

Change

$cfg['Servers'][$i]['host'] = 'localhost';
into

$cfg['Servers'][$i]['host'] = '127.0.0.1';
Save.

Then rename the file and remove sample from the name.
Comment

mysqli::real_connect(): (HY000/2002): No such file or directory

Locate config.sample.inc.php

Change

$cfg['Servers'][$i]['host'] = 'localhost';
into

$cfg['Servers'][$i]['host'] = '127.0.0.1';
Save.

this happen becuse you may using multipe mysql server on system and
php did not recognized the localhost 

and mysql default port is always 3306 

try to connect via terminal first

Run =>>
mysql -h 127.0.0.1 -P 3306 -uroot -p

then password 

you are in if password is correct 

Comment

PREVIOUS NEXT
Code Example
Php :: laravel-medialibrary packagist 
Php :: laravel log build 
Php :: page break in dompdf 
Php :: Carbon Add Hours In Laravel 
Php :: laravel middleware route 
Php :: php array has key 
Php :: laravel forcefill 
Php :: laravel print to log 
Php :: php hash 
Php :: how to share a helper globally laravel 
Php :: php replace first occurrence in string 
Php :: How to convert a PHP array to JSON object 
Php :: php clone datetime 
Php :: php array extract value 
Php :: make table in laravel 
Php :: laravel button redirect 
Php :: php if else 
Php :: read csv file in php 
Php :: laravel where and or condition 
Php :: laravel query builder select first 
Php :: php echo sql result 
Php :: laravel set config 
Php :: php force array keys trim 
Php :: get domain url with https in laravel 
Php :: laravel route target class not found 
Php :: laravel execute command from terminal 
Php :: how to run multiple seeder at a time in laravel 
Php :: running laravel queues in shared hosting 
Php :: apiresource laravel 
Php :: php get day of week 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =