This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import acm.program.*; | |
public class HelloWorld extends ConsoleProgram { | |
public void run() { | |
println("Hello World!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mysql.connector | |
conn = mysql.connector.connect(host="localhost", user="root", passwd="root", | |
#database='', | |
auth_plugin='mysql_native_password') # for MySQL 8.0 above | |
print(conn) | |
cursor = conn.cursor() | |
databases = ('show databases') |