vinpkl
May 26, 2016, 12:37pm
1
Hi all
as everyone is saying stop using mysql and start using pdo or mysql
i would like to ask question about it
My hosting at present has php 5 + mysql.
Is the mysql database software getting removed or just its command or functions are removing.
Will i have to install a new database software ??
What will happen to my data ??
Will i have to add all my data again ??
or
MYSQL will remain installed, i just have to change the queries / functions to pdo or mysqli.
thanks
vineet
Yes, it the mysql_ functions that have been removed in PHP7 and deprecated in the latest versions of PHP5.
vinpkl
May 26, 2016, 12:45pm
3
Hi gandalf458
i was worrying about installing new software and inserting all of the data again ??
thanks for clearing the doubt
vineet
It’s only your PHP scripts that need to be changed. It would be worthwhile keeping a backup of those.
G
SamA74
May 26, 2016, 12:50pm
5
Both mysqli ans pdo are available with php5. The databases will remain the same. It’s just the way you communicate with the database in your scripts that will change.
1 Like
TechnoBear
Split this topic
May 26, 2016, 1:18pm
6
4 posts were split to a new topic: Quoting posts in forum replies
Don’t confuse
MySQL the database
with
mysql the PHP extension
Although using the mysql extension is no longer a wise choice, I don’t see PHP’s support for working with MySQL going away anytime soon.
oddz
May 27, 2016, 12:23am
8
Your host isn’t just going to update 5 to 7. That would *likely break every website running on servers with php 5. What they *might do is offers servers with 7 which you can migrate to.
system
Closed
August 26, 2016, 7:23am
9
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.