-2

In python some times mysqli is used and some other times mysql only is used. Can any pone tell me the differences between both. And when to use what?

mysql.connector()
mysqli.connector()
Your Common Sense
  • 156,878
  • 40
  • 214
  • 345
Afnan
  • 20
  • 6
  • 1
    Are you sure you are referring to *Python*, and not *PHP*? For PHP, see: https://stackoverflow.com/q/8891443, https://stackoverflow.com/questions/1390607/how-to-change-mysql-to-mysqli, https://stackoverflow.com/q/12859942, and https://stackoverflow.com/q/46293547 – Cody Gray - on strike Mar 12 '22 at 10:42

1 Answers1

1

mysql.connector is a Python package, mysqli is for PHP, which is a different language.

"connector" packages are developed by the MySQL team for a number of languages - see here

snakecharmerb
  • 47,570
  • 11
  • 100
  • 153