久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 MySQL Linux 服務器上安裝 PDO 驅動程序

Installing PDO driver on MySQL Linux server(在 MySQL Linux 服務器上安裝 PDO 驅動程序)
本文介紹了在 MySQL Linux 服務器上安裝 PDO 驅動程序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

不久前有人建議我更改我的代碼以使用 PDO,以便參數化我的查詢并安全地將 HTML 保存在數據庫中.

I was suggested, not long ago, to change my code to use PDO in order to parameterize my queries and safely save HTML in the database.

嗯,這里是主要問題:

  1. 我看了http://php.net/manual/en/ref.pdo-mysql.php,我真的不知道我應該把那個 $ ./configure --with-pdo-mysql 字符串放在哪里...

  1. I looked at http://php.net/manual/en/ref.pdo-mysql.php, and I don't really get where I should put that $ ./configure --with-pdo-mysql string...

我正在構建的網站實際上只需要一頁的 PDO.雖然我可能會考慮重新編寫它,但這需要一段時間,而且我需要盡快運行頁面,所以我不能完全關閉 MySQL.如果我安裝了 PDO,我還能使用 mysql_* 處理程序嗎?

The site I'm building actually only requires PDO for one page. While I may consider re-writing it, it would take a while and I need the pages to be running soon, so I can't turn off MySQL completely. If I do install PDO, will I still be able to use mysql_* handlers?

有問題的服務器正在運行 PHP 版本 5.4.6-1ubuntu1 和 Apache/2.2.22 (Ubuntu).如果重要的話,我也在運行一個 phpMyAdmin 數據庫.

The server in question is running PHP Version 5.4.6-1ubuntu1 and Apache/2.2.22 (Ubuntu). I'm also running a phpMyAdmin database, if it matters.

推薦答案

在 Ubuntu 上,您應該能夠使用 sudo apt-get install php5-mysql

On Ubuntu you should be able to install the necessary PDO parts from apt using sudo apt-get install php5-mysql

同時使用 PDO 和 mysql_ 沒有限制.但是,您需要創建兩個到數據庫的連接,一個使用 mysql_,一個使用 PDO.

There is no limitation between using PDO and mysql_ simultaneously. You will however need to create two connections to your DB, one with mysql_ and one using PDO.

這篇關于在 MySQL Linux 服務器上安裝 PDO 驅動程序的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Add programmatically a downloadable file to Woocommerce products(以編程方式將可下載文件添加到 Woocommerce 產品)
Get today#39;s total orders count for each product in Woocommerce(獲取今天 Woocommerce 中每種產品的總訂單數)
Add Custom registration fields in WooCommerce and phone field validation issue(在 WooCommerce 和電話字段驗證問題中添加自定義注冊字段)
Add a select field that will change price in Woocommerce simple products(在 Woocommerce 簡單產品中添加一個將更改價格的選擇字段)
Add custom columns to admin products list in WooCommerce 3(在 WooCommerce 3 中將自定義列添加到管理產品列表)
Customizing checkout quot;Place Orderquot; button output html(自定義結帳“下訂單按鈕輸出html)
主站蜘蛛池模板: 国产探花在线精品一区二区 | 久久一二区| 欧美亚洲第一区 | 99在线资源 | h片在线看 | 久久神马 | 蜜桃视频成人 | 国产在线视频一区 | 特级丰满少妇一级aaaa爱毛片 | 日韩一区二区免费视频 | 国产一区二区三区在线视频 | 欧美在线一级 | 国产精品毛片一区二区在线看 | 亚洲一区二区三区免费观看 | 成人午夜视频在线观看 | 亚洲国产精品激情在线观看 | 久久精品 | 久久精品国产a三级三级三级 | 国产高清久久久 | www.日韩 | 最新中文字幕在线 | 亚洲欧美在线一区 | 91久久婷婷 | 国产精品亚洲综合 | 亚洲精品在线免费 | 欧美日韩中文在线观看 | 一级欧美| 免费啪啪| 欧美日韩美女 | 色伊人久久 | 精品一区国产 | 国产精品久久久久久久久免费高清 | 欧美 中文字幕 | www.国产精| 一区二区小视频 | 欧美精品在线一区二区三区 | 欧美综合网| 国产精品久久久99 | 国产91丝袜在线播放 | 久久久国产一区二区三区 | 欧美视频精品 |