【待反馈】使用php7.3提示 could not find driver
服务器使用的系统是 Windows server 2008 R2按百度上的打开了相应的扩展,但是还是不行,宝塔怎么配置才能使用7.3的版本正常连接mysql
您好,截图全一些执行日志看看 运维阿宏 发表于 2021-2-6 19:17
您好,截图全一些执行日志看看
求大佬帮忙看看 运维阿宏 发表于 2021-2-6 19:17
您好,截图全一些执行日志看看
相应的扩展也是打开的,重启了服务还是一样提示
could not find driver
[*] $this->fetchType = $config['result_type'];
[*] }
[*] try {
[*] if (empty($config['dsn'])) {
[*] $config['dsn' = $this->parseDsn($config);
[*] }
[*] if ($config['debug']) {
[*] $startTime = microtime(true);
[*] }
[*] $this->links[$linkNum = new PDO($config['dsn'], $config['username'], $config['password'], $params);
[*] if ($config['debug']) {
[*] // 记录数据库连接信息
[*] Log::record('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn'], 'sql');
[*] }
[*] } catch (\PDOException $e) {
[*] if ($autoConnection) {
[*] Log::record($e->getMessage(), 'error');
[*] return $this->connect($autoConnection, $linkNum);
[*] } else {
您好,连接数据库,可使用面板数据库的phpmyadmin按钮连接
面板软件商店安装phpmyadmin5.0版本,安装php7.3,然后phpmyadmin插件里选择7.3版本即可,关于php扩展,默认已经安装,无需再另行配置,即可连接数据库的
页:
[1]