2024-09-01 16:28:36,614:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (MySQLdb.OperationalError) (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") (Background on this error at: https://sqlalche.me/e/14/e3q8) Loaded your LOCAL configuration at [/home/zhangjc/github/superset/superset_config.py]
$ python Python 3.11.9 (main, Aug 28 2024, 23:13:21) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license"for more information. >>> import MySQLdb >>> from MySQLdb import _mysql >>> db=_mysql.connect(host="localhost",user="superset", password="superset@01", database="superset") Traceback (most recent call last): File "<stdin>", line 1, in <module> MySQLdb.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") >>> db=_mysql.connect(host="localhost",user="superset", password="superset@01", database="superset", unix_socket='/tmp/mysql.sock') >>>
$ superset run -p 8088 --with-threads --reload --debugger Loaded your LOCAL configuration at [/home/zhangjc/github/superset/superset_config.py] logging was configured successfully 2024-09-05 11:45:16,426:INFO:superset.utils.logging_configurator:logging was configured successfully 2024-09-05 11:45:16,433:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'> /home/zhangjc/frin/python/venvs/superset/lib/python3.11/site-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend. warnings.warn( 2024-09-05 11:45:16,438:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: 'socket' is an invalid keyword argument for connect()