久久久久久久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)
主站蜘蛛池模板: 欧美一级视频免费看 | 91福利影院 | 男人亚洲天堂 | 国产黄色小视频在线观看 | 成年人在线观看 | 视频1区2区 | 一级欧美黄色片 | 国产精品区一区二 | 亚洲免费三级 | 黄色免费网站在线看 | 三级在线视频 | 国产精品福利久久久 | 99av成人精品国语自产拍 | 紧缚调教一区二区三区视频 | 国产一区二区在线免费播放 | 一区二区国产在线观看 | 久久久91精品国产一区二区三区 | 视频一区在线观看 | 亚洲精品二区 | 国产中文区二幕区2012 | 日韩精品久久 | 妹子干综合 | 91精品一区| 成人在线小视频 | 麻豆一区一区三区四区 | 午夜精品久久久久久久99黑人 | 成人动漫视频网站 | 亚洲精品视频免费 | 久久综合狠狠综合久久综合88 | 中文字幕在线观看成人 | 亚洲444kkkk在线观看最新 | 欧美日韩亚洲一区二区 | 中文字幕视频在线看 | 亚洲五码久久 | 狠狠躁天天躁夜夜躁婷婷老牛影视 | 日韩一级黄色毛片 | 喷潮网站 | 欧美乱码精品一区二区三区 | 日韩欧美一区二区三区免费看 | 999久久久| 亚洲国产欧美一区二区三区久久 |