简体   繁体   中英

Alter column type from json to another

I have been sent a file with a site in cakephp 3, with the database and all the files... When i try to create a localhost with these files ( after config all the settings ) i got the welcome screen of cakephp, not the screen of the site that have been developed... It loads all the modules and connects to the database.

When i was importing the database i got an error because of the field type was json, and my mysql is older than 5.7 so it doesn't have that type of field, i changed it to text and the import was successful but the site it's not working... ( loads the welcome screen)

The final server has a mysql 5.6, so it doesn't have the json type also...

I think that the problem is with the json type of field and how i changed it to text ( so that's why it shows the welcome screen ). I have tried to update my local mysql server ( with no success) but the final server can't be updated so that's not the solution.

So, How can i find the problem and get the site to work?

Thanks in advance...

不得不更新最终服务器并将数据库更改为5.7,就解决了问题。

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