Home  >  Article  >  Backend Development  >  你们都怎样建库建表呀?解决方法

你们都怎样建库建表呀?解决方法

WBOY
WBOYOriginal
2016-06-13 13:37:511019browse

你们都怎样建库建表呀?
php里面需要建数据库和表的时候,你们都是怎么做的?
是在php里面用mysql语句建库建表的多还是用phpmyadmin建库建表的多?
如果用phpmyadmin建库建表客户会不会嫌烦,还要额外的操作客户的服务器?
如果把建库建表都放到php里面,又没有加密措施,岂不是拷贝到哪儿都能用?


------解决方案--------------------
在phpmyadmin里边建
------解决方案--------------------
在phpmyadmin里边建好,然后导出成 SQL 文件

建表的工作肯定是你的,用户怎么能做呢?你就知道用户一定会吗?


------解决方案--------------------
你在客户那里导入 SQL 文件,不比新建一遍表来的方便吗?
何况把 SQL 文件删了,不就能解决你“建库建表都放到php里面,又没有加密措施,岂不是拷贝到哪儿都能用”的担忧吗?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn