Help me to see if the problem persists. Restart apach and mysql. The prompt is as follows: Fatalerror: Uncaughtexception & #39; PDOException & #39; withmessage & #39; couldnotfinddriver & #39; inD: phpwwwindex. php: 49 Stacktrace: # 0D: phpwwwindex. php (49): PDO-& gt ;__ construct (& #39; mysql56: hostlo... & #39;, & #39 mysqlphp
Help me to see if the problem persists. Restart apach and mysql. The error message is as follows: 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', '000000') #1 {main} thrown in D: \ php \ www \ index. php on line 49
Code
$ Dsn = "mysql56: host = localhost; dbname = test ";
$ Db = new PDO ($ dsn, "root ","");
$ Rs = $ db-> query ($ SQL );
Echo "read successfully! ";
?>
The semicolons in php. ini are also deleted.