• 15-04-2021, 16:34:54
    #1
    <?php
    error_reporting(0);
    try {
    $db=new PDO("mysql:host=localhost;dbname=personv1;charset= utf8",'root','');
    }
    catch (PDOExpception $e){
    echo $e->getMessage();
    }
    ?>


    Başlıkta yazdığı gibi nereye yazıcam? 🤔
  • 15-04-2021, 16:36:53
    #2
    utf8",'root',''. Root yerine kullanıcı adı '' boş kısma ise şifre
  • 15-04-2021, 16:37:21
    #3
    'kullaniciadi','sifre'
  • 15-04-2021, 16:38:08
    #4
    <?php
    error_reporting(0);
    try {
    $db=new PDO("mysql:host=localhost;dbname=personv1;charset= utf8",'kullanici adi','sifre');
    }
    catch (PDOExpception $e){
    echo $e->getMessage();
    }
    ?>
    Tekrar düzenledim
  • 15-04-2021, 16:48:38
    #5
    onuruska adlı üyeden alıntı: mesajı görüntüle
    utf8",'root',''. Root yerine kullanıcı adı '' boş kısma ise şifre
    instads adlı üyeden alıntı: mesajı görüntüle
    'kullaniciadi','sifre'
    onuruska adlı üyeden alıntı: mesajı görüntüle
    <?php
    error_reporting(0);
    try {
    $db=new PDO("mysql:host=localhost;dbname=personv1;charset= utf8",'kullanici adi','sifre');
    }
    catch (PDOExpception $e){
    echo $e->getMessage();
    }
    ?>
    Tekrar düzenledim
    Teşekkürler ❤️❤️❤️❤️