--> -->
 
 
DatabaseError
Python 3.10.12: /usr/bin/python3
Tue Feb 24 18:04:07 2026

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/cryan/secure_html/daily/blogpost.py in <module>
     24 
     25 from database import homeschedule2025
=>   26 blogplan = homeschedule2025()
     27 
     28 hostname = 'localhost';
blogplan undefined, homeschedule2025 = <function homeschedule2025>
 /home/cryan/secure_html/database.py in homeschedule2025()
     69                 return blogsidebar;    
     70 
=>   71         myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
     72         tablecontent += doQuery( myConnection )
     73         myConnection.close()
myConnection undefined, mysql = <module 'mysql' from '/home/cryan/.local/lib/python3.10/site-packages/mysql/__init__.py'>, mysql.connector = <module 'mysql.connector' from '/home/cryan/.loc...n3.10/site-packages/mysql/connector/__init__.py'>, mysql.connector.connect = <function connect>, host undefined, hostname = 'localhost', user undefined, username = 'cryan', passwd undefined, password = 'kbf2wdw', db undefined, database = 'cryan'
 /home/cryan/.local/lib/python3.10/site-packages/mysql/connector/pooling.py in connect(*args=(), **kwargs={'db': 'cryan', 'host': 'localhost', 'passwd': 'kbf2wdw', 'user': 'cryan'})
    320 
    321     if CMySQLConnection and not use_pure:
=>  322         return CMySQLConnection(*args, **kwargs)
    323     return MySQLConnection(*args, **kwargs)
    324 
global CMySQLConnection = <class 'mysql.connector.connection_cext.CMySQLConnection'>, args = (), kwargs = {'db': 'cryan', 'host': 'localhost', 'passwd': 'kbf2wdw', 'user': 'cryan'}
 /home/cryan/.local/lib/python3.10/site-packages/mysql/connector/connection_cext.py in __init__(self=<mysql.connector.connection_cext.CMySQLConnection object>, **kwargs={'db': 'cryan', 'host': 'localhost', 'passwd': 'kbf2wdw', 'user': 'cryan'})
    140         if kwargs:
    141             try:
=>  142                 self.connect(**kwargs)
    143             except Exception:
    144                 self.close()
self = <mysql.connector.connection_cext.CMySQLConnection object>, self.connect = <bound method MySQLConnectionAbstract.connect of...nnector.connection_cext.CMySQLConnection object>>, kwargs = {'db': 'cryan', 'host': 'localhost', 'passwd': 'kbf2wdw', 'user': 'cryan'}
 /home/cryan/.local/lib/python3.10/site-packages/mysql/connector/abstracts.py in connect(self=<mysql.connector.connection_cext.CMySQLConnection object>, **kwargs={'db': 'cryan', 'host': 'localhost', 'passwd': 'kbf2wdw', 'user': 'cryan'})
   1602 
   1603         self.disconnect()
=> 1604         self._open_connection()
   1605 
   1606         charset, collation = (
self = <mysql.connector.connection_cext.CMySQLConnection object>, self._open_connection = <bound method CMySQLConnection._open_connection ...nnector.connection_cext.CMySQLConnection object>>
 /home/cryan/.local/lib/python3.10/site-packages/mysql/connector/connection_cext.py in _open_connection(self=<mysql.connector.connection_cext.CMySQLConnection object>)
    358         except MySQLInterfaceError as err:
    359             if hasattr(err, "errno"):
=>  360                 raise get_mysql_exception(
=>  361                     err.errno, msg=err.msg, sqlstate=err.sqlstate
=>  362                 ) from err
global get_mysql_exception = <function get_mysql_exception>, err undefined, msg undefined, sqlstate undefined

DatabaseError: 2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (111)
      args = (2003, "2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (111)", 'HY000')
      errno = 2003
      msg = "Can't connect to MySQL server on 'localhost:3306' (111)"
      sqlstate = 'HY000'
      with_traceback = <built-in method with_traceback of DatabaseError object>