简体   繁体   中英

Table “tablename” does not exist in moodle

I am new in php cms(moodle). I create a plugin and it's name is area . i have installed it and database table created successfully, table name is mdl_area_state , but giving me an error

Table mdl_area_state does not exists.

Did you use the xmldb editor? This will create an install.xml file that will create the tables.

Go to site admin -> development -> xmldb editor

https://docs.moodle.org/dev/XMLDB_editor

The install file will be located in local/yourpluginname/db/install.xml.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM