codeIgniter use mysql_real_escape_string() instead.database connection issue

前端 未结 5 570
臣服心动
臣服心动 2021-01-06 04:52

I have code igniter installed on server with database I want to run the same db on my mac, I used MAMP and I copy the project folder inside htdocs, but I have this error wou

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-06 05:10

    try this:

    $db['development']['hostname'] = 'mysql:host=localhost';
    $db['development']['dbdriver'] = 'pdo';
    
    $db['staging']['hostname'] = 'mysql:host=localhost';
    $db['staging']['dbdriver'] = 'pdo';
    

    I have update the answer

提交回复
热议问题