从 php-mysqld 更改为 php-mysqlnd [英] Change from php-mysqld to php-mysqlnd

查看:74
本文介绍了从 php-mysqld 更改为 php-mysqlnd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个安装了 centOS 6.3 的 VPS,我想从 php-mysqld 更改为 php-mysqlnd(本机驱动程序) 以获得更好的性能.

I have a VPS with centOS 6.3 installed on it, i want to change from php-mysqld to php-mysqlnd (native driver) for better performance.

但问题是我在服务器上有一个生产网站,它有一个巨大的数据库和 phpmyadmin 来控制基于 Web 的 DB.现在我担心如果我删除 php-mysqld 并安装 php-mysqlnd 我将丢失数据库以及为他们创建的用户,我必须再次配置所有这些.

But the problem is that i have a production website on the server with a huge database and phpmyadmin installed to take control of DBs web based. now i'm afraid that if i erase php-mysqld and the install php-mysqlnd i will lost DBs as well as users created for them and i have to config all of them again.

无论如何要在此更改期间保留我的数据库、用户、配置...?

Is there anyway to keep my DBs , Users, Configs , ... during this change ?

提前致谢

推荐答案

实际上我发现它很容易完成,因为您只需更改驱动程序,无需更改任何内容.

Actually i found it to be done so easily, as you only change the driver nothing needs to be change.

一个简单的 yum 擦除 php-mysqld,然后 yum 安装 php-mysqlnd 并重新启动即可完成所有操作,您不需要任何备份或任何配置更改.

A simple yum erase php-mysqld and then yum install php-mysqlnd and a reboot will do it all and you don't need any backup nor any config change.

这篇关于从 php-mysqld 更改为 php-mysqlnd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆