From the course: Using SQL with Python

Unlock the full course today

Join today to access over 23,300 courses taught by industry experts.

Hello, MySQL

Hello, MySQL

- [Instructor] This is the MySQL version of our hello database script. It serves much the same purpose as a traditional hello world program, but for a database interface. A traditional hello world is short and simple. It's commonly used to validate a tool chain, make sure all the pieces are in place. In this case, it's a bit more than that. Also use it to show you how various parts of the Python DB API works in the MySQL context. MySQL is a free and open source relational database system. This example, presumes you've already installed MySQL server on your system and if you need help doing that, you may see my course, MySQL Installation and Configuration. In this case, you'll notice that I have my database server on a different machine at pluto.local. This would say local hosts, like this. If you have the database on the same machine, as you're running your Python. In any event, this is hello mysql.py from chapter one…

Contents