Mysql deprecated question

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.

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

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

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.

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.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.