Postingan lainnya
Gagal connect mysql
Ada yang tau solusinya?
kode program:
<?php
$link = mysqli_connect("localhost", "root", "", "test");
if($link) echo "berhasil";
else echo "gagal";
?>
error:
Warning: mysqli_connect(): Unexpected server respose while doing caching_sha2 auth: 21 in C:\MAMP\htdocs\belajar php\index.php on line 3
Warning: mysqli_connect(): MySQL server has gone away in C:\MAMP\htdocs\belajar php\index.php on line 3
Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in C:\MAMP\htdocs\belajar php\index.php on line 3
gagal
0
2 Jawaban:
Jawaban Terpilih
ternyata pas di install ulang jadi lagi, entah kenapa :v
0