python – Logon script – Review of stack exchange code

This is a login-log script I've done in Python 3. It uses MySQL as a database and in the future I could implement it in my Blackjack game and add a row called money, but for now I would like to "listen" to its Opinion on this script, therefore, I have little or no experience in SQL.

import cymysql
from getpass import getpass


def get_user_info ():
while True
email = input ("Enter your email address (max 64 characters.):")
password = getpass ("Enter a password (max 64 characters.):")
yes len (email) <64 and len (password) <64:
return email, password


def registration (cur, email, password):
cur.execute ("INSERT IN` users` (` Email`, `Password`) VALUES (% s,% s)", (email, password))
print ("You have successfully registered!")


def login (cur, email, password):
cur.execute ("SELECT * FROM` users` WHERE` Email` =% s AND` Password` =% s LIMIT 1 ", (email, password))
rows = cur.fetchall ()
if rows:
print ("You have successfully logged in!")
plus:
print ("You failed to login!")


def check_account (cur, email):
cur.execute ("SELECT * FROM` users` WHERE` Email` =% s LIMIT 1 ", (email,))
row = cur.fetchone ()
return row


def main ():
conn = cymysql.connect (
host = & # 39; 127.0.0.1 & # 39 ;,
user = & # 39; root & # 39 ;,
passwd = & # 39; & # 39 ;,
db = & # 39; david & # 39;
)
cur = conn.cursor ()
email = & # 39; & # 39;
password = & # 39; & # 39;
email, password = get_user_info ()
check = check_account (cur, email)
if I check
login (cur, email, password)
plus:
registration (cur, email, password)
cur.close ()
conn.close ()


yes __name__ == & # 39; __ main __ & # 39;
principal()