How do I create database tables?

Matthew Hawley

Well-known member
I know you can create database tables in PHPMyAdmin, just not sure if there was a specific XenForo way of doing it. I am getting this error on an addon im making so I need to create tables.

Server Error
Mysqli prepare error: Table 'mcwh_codeforums.xf_cf_directory_pages' doesn't exist

  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
  5. XenForo_Model->fetchAllKeyed() in CF/Directory/Model/Page.php at line 38
  6. CF_Directory_Model_Page->getAllPages() in CF/Directory/ControllerAdmin/Directory.php at line 37
  7. CF_Directory_ControllerAdmin_Directory->actionIndex() in XenForo/FrontController.php at line 337
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  9. XenForo_FrontController->run() in /home3/xxx/public_html/xxx/admin.php at line 13
 
Have a look at the XenForo install code.

Thanks!

Wooo!!!!

IJoUpFM.png
 
Back
Top Bottom