MyBB Community Forums

Full Version: mybb_sessions' doesn't exist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
this error appeared after upgrading the forum
what query should I run to create this table again even if its empty?

<error>
<dateline>1673560371</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 1146 - Table 'example_example.mybb_sessions' doesn't exist
Can you confirm it's missing using e.g. phpMyAdmin?

If that's indeed the case, you can execute the original query: https://github.com/mybb/mybb/blob/mybb_1...#L717-L733 (between " characters). It would be worth investigating why it was deleted.

This error may also indicate connection to a wrong database (where MyBB was not installed).
(2023-01-14, 11:47 AM)Devilshakerz Wrote: [ -> ]Can you confirm it's missing using e.g. phpMyAdmin?

If that's indeed the case, you can execute the original query: https://github.com/mybb/mybb/blob/mybb_1...#L717-L733 (between " characters). It would be worth investigating why it was deleted.

This error may also indicate connection to a wrong database (where MyBB was not installed).

it tells me this when I run the query
If that keeps happening you'd need to ask your host. Given the two issues, it sounds like there may be something wrong with the database server.