mysqlphp
帮我看看,找不出问题。apach和mysql都重新启动。提示如下:fatal error: uncaught exception 'pdoexception' with message 'could not find driver' in d:\php\www\index.php:49 stack trace: #0 d:\php\www\index.php(49): pdo->__construct('mysql56:host=lo...', 'admin', '123456') #1 {main} thrown in d:\php\www\index.php on line 49
代码
$dsn = "mysql56:host=localhost;dbname=test";
$db = new PDO($dsn,"root","");
$rs = $db->query($sql);
echo "成功读出!";
?>
php.ini中的分号也都删除了。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号