May-01-2018, 08:06 PM
killerrex is right, what you are trying to do is bash-scripting. and are trying to stop and start the database server running on you system.
If you want to access a database work with a python database package. There are different packages working best with different kinds of databases, take a look here:
https://www.fullstackpython.com/databases.html
Psycopg should do the trick for you
If you want to access a database work with a python database package. There are different packages working best with different kinds of databases, take a look here:
https://www.fullstackpython.com/databases.html
Psycopg should do the trick for you