https://open.oceanbase.com/blog/15622679120
按照上面的步骤搭建,执行到这一步报错:
报错内容如下:
Traceback (most recent call last):
File "/data/yyai/ai-workshop-2024/utils/extract.py", line 54, in <module>
cur = client.perform_raw_text_sql(f"SELECT COUNT(*) FROM {args.table_name}")
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pyobvector/client/milvus_like_client.py", line 684, in perform_raw_text_sql
return super().perform_raw_text_sql(text_sql)
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pyobvector/client/ob_vec_client.py", line 736, in perform_raw_text_sql
return conn.execute(text(text_sql))
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
return meth(
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
return connection._execute_clauseelement(
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
ret = self._execute_context(
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
return self._exec_single_context(
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
self._handle_dbapi_exception(
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
self.dialect.do_execute(
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
cursor.execute(statement, parameters)
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/cursors.py", line 153, in execute
result = self._query(query)
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/connections.py", line 563, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/connections.py", line 825, in _read_query_result
result.read()
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/connections.py", line 1199, in read
first_packet = self.connection._read_packet()
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
packet.raise_for_error()
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/data/yyai/.cache/pypoetry/virtualenvs/ai-workshop-MjiVjgAq-py3.10/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'ailive.corpus' doesn't exist")
[SQL: SELECT COUNT(*) FROM corpus]
(Background on this error at: https://sqlalche.me/e/20/f405)
对应的数据库:
mysql> show tables;
+------------------+
| Tables_in_ailive |
+------------------+
| t1 |
+------------------+
1 row in set (0.01 sec)
错误码:
1146, “Table ‘ailive.corpus’ doesn’t exist”
按步骤来的,不知错在哪一步